MCPcopy
hub / github.com/stemkoski/stemkoski.github.com / releaseArray

Function releaseArray

MathBox/mathbox-bundle.js:35503–35508  ·  view source on GitHub ↗

* Releases the given array back to the array pool. * * @private * @param {Array} [array] The array to release.

(array)

Source from the content-addressed store, hash-verified

35501 * @param {Array} [array] The array to release.
35502 */
35503 function releaseArray(array) {
35504 array.length = 0;
35505 if (arrayPool.length < maxPoolSize) {
35506 arrayPool.push(array);
35507 }
35508 }
35509
35510 /**
35511 * Releases the given object back to the object pool.

Callers 6

baseCloneFunction · 0.85
baseIsEqualFunction · 0.85
baseUniqFunction · 0.85
mergeFunction · 0.85
sortByFunction · 0.85
intersectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected