Sha256: c154d1d738c650023e5c2bb2b3dd7f655f2eafdcd34bd34056aaa97aaa017714
Contents?: true
Size: 379 Bytes
Versions: 167
Compression:
Stored size: 379 Bytes
Contents
var isObject = require('../lang/isObject'); /** * Adds `value` to the cache. * * @private * @name push * @memberOf SetCache * @param {*} value The value to cache. */ function cachePush(value) { var data = this.data; if (typeof value == 'string' || isObject(value)) { data.set.add(value); } else { data.hash[value] = true; } } module.exports = cachePush;
Version data entries
167 entries across 87 versions & 9 rubygems