Version 1
[yaffs-website] / node_modules / grunt-legacy-log / node_modules / lodash / internal / basePropertyDeep.js
diff --git a/node_modules/grunt-legacy-log/node_modules/lodash/internal/basePropertyDeep.js b/node_modules/grunt-legacy-log/node_modules/lodash/internal/basePropertyDeep.js
new file mode 100644 (file)
index 0000000..1b6ce40
--- /dev/null
@@ -0,0 +1,19 @@
+var baseGet = require('./baseGet'),
+    toPath = require('./toPath');
+
+/**
+ * A specialized version of `baseProperty` which supports deep paths.
+ *
+ * @private
+ * @param {Array|string} path The path of the property to get.
+ * @returns {Function} Returns the new function.
+ */
+function basePropertyDeep(path) {
+  var pathKey = (path + '');
+  path = toPath(path);
+  return function(object) {
+    return baseGet(object, path, pathKey);
+  };
+}
+
+module.exports = basePropertyDeep;