underscore-source 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -55,7 +55,7 @@
|
|
55
55
|
root._ = _;
|
56
56
|
|
57
57
|
// Current version.
|
58
|
-
_.VERSION = '1.0.
|
58
|
+
_.VERSION = '1.0.2';
|
59
59
|
|
60
60
|
// ------------------------ Collection Functions: ---------------------------
|
61
61
|
|
@@ -504,12 +504,12 @@
|
|
504
504
|
// Is a given value an array?
|
505
505
|
// Delegates to ECMA5's native Array.isArray
|
506
506
|
_.isArray = nativeIsArray || function(obj) {
|
507
|
-
return !!(obj && obj.concat && obj.unshift);
|
507
|
+
return !!(obj && obj.concat && obj.unshift && !obj.callee);
|
508
508
|
};
|
509
509
|
|
510
510
|
// Is a given variable an arguments object?
|
511
511
|
_.isArguments = function(obj) {
|
512
|
-
return obj &&
|
512
|
+
return obj && obj.callee;
|
513
513
|
};
|
514
514
|
|
515
515
|
// Is a given value a function?
|