Guarantee boolean return value from _.isArguments

This commit is contained in:
Ryan W Tenney
2010-08-31 14:53:12 -04:00
parent 3588d11adc
commit 116ff91bec

View File

@@ -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?