mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Guarantee boolean return value from _.isArguments
This commit is contained in:
@@ -525,7 +525,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 && obj.callee);
|
||||||
};
|
};
|
||||||
|
|
||||||
// Is a given value a function?
|
// Is a given value a function?
|
||||||
|
|||||||
Reference in New Issue
Block a user