mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 10:57:49 +00:00
trying to avoid obj.callee (strict mode)
This commit is contained in:
@@ -595,7 +595,7 @@
|
|||||||
|
|
||||||
// Is a given variable an arguments object?
|
// Is a given variable an arguments object?
|
||||||
_.isArguments = function(obj) {
|
_.isArguments = function(obj) {
|
||||||
return !!(obj && obj.callee);
|
return !!(obj && hasOwnProperty.call(obj, 'callee'));
|
||||||
};
|
};
|
||||||
|
|
||||||
// Is a given value a function?
|
// Is a given value a function?
|
||||||
|
|||||||
Reference in New Issue
Block a user