From 116ff91bec2873e0d841427a9f27c8ff16425aec Mon Sep 17 00:00:00 2001 From: Ryan W Tenney Date: Tue, 31 Aug 2010 14:53:12 -0400 Subject: [PATCH] Guarantee boolean return value from `_.isArguments` --- underscore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/underscore.js b/underscore.js index 60bf47ccd..66f83dbfb 100644 --- a/underscore.js +++ b/underscore.js @@ -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?