mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
Underscore 1.0.2, with a fixed _.isArguments for Opera
This commit is contained in:
@@ -55,7 +55,7 @@
|
||||
root._ = _;
|
||||
|
||||
// Current version.
|
||||
_.VERSION = '1.0.1';
|
||||
_.VERSION = '1.0.2';
|
||||
|
||||
// ------------------------ Collection Functions: ---------------------------
|
||||
|
||||
@@ -504,12 +504,12 @@
|
||||
// Is a given value an array?
|
||||
// Delegates to ECMA5's native Array.isArray
|
||||
_.isArray = nativeIsArray || function(obj) {
|
||||
return !!(obj && obj.concat && obj.unshift);
|
||||
return !!(obj && obj.concat && obj.unshift && !obj.callee);
|
||||
};
|
||||
|
||||
// Is a given variable an arguments object?
|
||||
_.isArguments = function(obj) {
|
||||
return obj && _.isNumber(obj.length) && !obj.concat && !obj.substr && !obj.apply && !propertyIsEnumerable.call(obj, 'length');
|
||||
return obj && obj.callee;
|
||||
};
|
||||
|
||||
// Is a given value a function?
|
||||
|
||||
Reference in New Issue
Block a user