mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Guarantee boolean return value from _.isArguments
This commit is contained in:
@@ -525,7 +525,7 @@
|
||||
|
||||
// Is a given variable an arguments object?
|
||||
_.isArguments = function(obj) {
|
||||
return obj && obj.callee;
|
||||
return !!(obj && obj.callee);
|
||||
};
|
||||
|
||||
// Is a given value a function?
|
||||
|
||||
Reference in New Issue
Block a user