Version 1
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / _stackGet.js
diff --git a/node_modules/grunt-legacy-util/node_modules/lodash/_stackGet.js b/node_modules/grunt-legacy-util/node_modules/lodash/_stackGet.js
new file mode 100644 (file)
index 0000000..20b9d9a
--- /dev/null
@@ -0,0 +1,19 @@
+var assocGet = require('./_assocGet');
+
+/**
+ * Gets the stack value for `key`.
+ *
+ * @private
+ * @name get
+ * @memberOf Stack
+ * @param {string} key The key of the value to get.
+ * @returns {*} Returns the entry value.
+ */
+function stackGet(key) {
+  var data = this.__data__,
+      array = data.array;
+
+  return array ? assocGet(array, key) : data.map.get(key);
+}
+
+module.exports = stackGet;