MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / cachePush

Function cachePush

lib/web/jshint.js:2809–2816  ·  view source on GitHub ↗

* Adds `value` to the cache. * * @private * @name push * @memberOf SetCache * @param {*} value The value to cache.

(value)

Source from the content-addressed store, hash-verified

2807 * @param {*} value The value to cache.
2808 */
2809 function cachePush(value) {
2810 var data = this.data;
2811 if (typeof value == 'string' || isObject(value)) {
2812 data.set.add(value);
2813 } else {
2814 data.hash[value] = true;
2815 }
2816 }
2817
2818 /*------------------------------------------------------------------------*/
2819

Callers

nothing calls this directly

Calls 2

isObjectFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected