Permalink
Browse files

Add a new until ‘hasProperty’

  • Loading branch information...
1 parent 66232a8 commit 2ac8767d10ed1aef01c16716362f3e82033b8807 @Baggz committed Mar 8, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/utils/hasProperty.js
View
@@ -0,0 +1,8 @@
+/**
+ * HasProperty
+ *
+ * @param {object} input
+ */
+var hasProperty = function(obj, property) {
+ return Object.prototype.hasOwnProperty.apply(obj, [property]);
+};

0 comments on commit 2ac8767

Please sign in to comment.