* Releases the given object back to the object pool. * * @private * @param {Object} [object] The object to release.
(object)
| 35514 | * @param {Object} [object] The object to release. |
| 35515 | */ |
| 35516 | function releaseObject(object) { |
| 35517 | var cache = object.cache; |
| 35518 | if (cache) { |
| 35519 | releaseObject(cache); |
| 35520 | } |
| 35521 | object.array = object.cache = object.criteria = object.object = object.number = object.string = object.value = null; |
| 35522 | if (objectPool.length < maxPoolSize) { |
| 35523 | objectPool.push(object); |
| 35524 | } |
| 35525 | } |
| 35526 | |
| 35527 | /** |
| 35528 | * Slices the `collection` from the `start` index up to, but not including, |
no outgoing calls
no test coverage detected