Skip to content
Browse files

Move the ‘Validation.prototype.getProperty’ method into a separate file

  • Loading branch information...
1 parent 172d3ef commit a87600cd36977e9676148a6e2710732cd7f7d7a3 @Baggz committed Mar 8, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/engines/json/getProperty.js
View
9 src/engines/json/getProperty.js
@@ -0,0 +1,9 @@
+/**
+ * GetProperty
+ *
+ * @param {object} source
+ * @param {string} property
+ */
+Validation.prototype.getProperty = function(source, property) {
+ return (!source) ? undefined : source[property];
+};

0 comments on commit a87600c

Please sign in to comment.
Something went wrong with that request. Please try again.