Skip to content

Commit

Permalink
elaborating comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jashkenas committed May 22, 2012
1 parent fceac7a commit b3a5632
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion underscore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit b3a5632

Please sign in to comment.