Version 1
[yaffs-website] / node_modules / grunt-uncss / node_modules / lodash / _getMapData.js
diff --git a/node_modules/grunt-uncss/node_modules/lodash/_getMapData.js b/node_modules/grunt-uncss/node_modules/lodash/_getMapData.js
new file mode 100644 (file)
index 0000000..17f6303
--- /dev/null
@@ -0,0 +1,18 @@
+var isKeyable = require('./_isKeyable');
+
+/**
+ * Gets the data for `map`.
+ *
+ * @private
+ * @param {Object} map The map to query.
+ * @param {string} key The reference key.
+ * @returns {*} Returns the map data.
+ */
+function getMapData(map, key) {
+  var data = map.__data__;
+  return isKeyable(key)
+    ? data[typeof key == 'string' ? 'string' : 'hash']
+    : data.map;
+}
+
+module.exports = getMapData;