mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
remove unused index variable in forEach
This commit is contained in:
@@ -63,7 +63,6 @@
|
|||||||
// Handles objects implementing forEach, arrays, and raw objects.
|
// Handles objects implementing forEach, arrays, and raw objects.
|
||||||
// Delegates to JavaScript 1.6's native forEach if available.
|
// Delegates to JavaScript 1.6's native forEach if available.
|
||||||
var each = _.forEach = function(obj, iterator, context) {
|
var each = _.forEach = function(obj, iterator, context) {
|
||||||
var index = 0;
|
|
||||||
try {
|
try {
|
||||||
if (nativeForEach && obj.forEach === nativeForEach) {
|
if (nativeForEach && obj.forEach === nativeForEach) {
|
||||||
obj.forEach(iterator, context);
|
obj.forEach(iterator, context);
|
||||||
|
|||||||
Reference in New Issue
Block a user