Version 1
[yaffs-website] / node_modules / grunt-legacy-log / node_modules / lodash / internal / baseProperty.js
diff --git a/node_modules/grunt-legacy-log/node_modules/lodash/internal/baseProperty.js b/node_modules/grunt-legacy-log/node_modules/lodash/internal/baseProperty.js
new file mode 100644 (file)
index 0000000..e515941
--- /dev/null
@@ -0,0 +1,14 @@
+/**
+ * The base implementation of `_.property` without support for deep paths.
+ *
+ * @private
+ * @param {string} key The key of the property to get.
+ * @returns {Function} Returns the new function.
+ */
+function baseProperty(key) {
+  return function(object) {
+    return object == null ? undefined : object[key];
+  };
+}
+
+module.exports = baseProperty;