✏️ 编辑:_SetCache.js
路径:
/home/boguraj1/public_html/jobsite/node_modules/lodash/_SetCache.js
大小:632 B · 修改:2022-11-21 20:09:44 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
var MapCache = require('./_MapCache'), setCacheAdd = require('./_setCacheAdd'), setCacheHas = require('./_setCacheHas'); /** * * Creates an array cache object to store unique values. * * @private * @constructor * @param {Array} [values] The values to cache. */ function SetCache(values) { var index = -1, length = values == null ? 0 : values.length; this.__data__ = new MapCache; while (++index < length) { this.add(values[index]); } } // Add methods to `SetCache`. SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; SetCache.prototype.has = setCacheHas; module.exports = SetCache;
💾 保存
取消
保存为 UTF-8,换行统一为 LF