Version 1
[yaffs-website] / node_modules / uncss / node_modules / lodash / internal / stackGet.js
diff --git a/node_modules/uncss/node_modules/lodash/internal/stackGet.js b/node_modules/uncss/node_modules/lodash/internal/stackGet.js
new file mode 100644 (file)
index 0000000..e095202
--- /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;