diff options
Diffstat (limited to 'tools/eslint/node_modules/lodash/_SetCache.js')
-rw-r--r-- | tools/eslint/node_modules/lodash/_SetCache.js | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/eslint/node_modules/lodash/_SetCache.js b/tools/eslint/node_modules/lodash/_SetCache.js new file mode 100644 index 0000000000..66b8b614b0 --- /dev/null +++ b/tools/eslint/node_modules/lodash/_SetCache.js @@ -0,0 +1,24 @@ +var MapCache = require('./_MapCache'), + cachePush = require('./_cachePush'); + +/** + * + * Creates a set cache object to store unique values. + * + * @private + * @param {Array} [values] The values to cache. + */ +function SetCache(values) { + var index = -1, + length = values ? values.length : 0; + + this.__data__ = new MapCache; + while (++index < length) { + this.push(values[index]); + } +} + +// Add functions to the `SetCache`. +SetCache.prototype.push = cachePush; + +module.exports = SetCache; |