From b3a5632f41faad46b3b3da97e6eb5550a78fb6b6 Mon Sep 17 00:00:00 2001 From: Jeremy Ashkenas Date: Tue, 22 May 2012 14:09:49 -0400 Subject: [PATCH] elaborating comment. --- underscore.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/underscore.js b/underscore.js index ece6d7dc8..ddb22dd33 100644 --- a/underscore.js +++ b/underscore.js @@ -872,7 +872,8 @@ return obj === void 0; }; - // Does an object have the given "own" property? + // Shortcut function for checking if an object has a given property directly + // on itself (in other words, not on a prototype). _.has = function(obj, key) { return hasOwnProperty.call(obj, key); };