MCPcopy Create free account
hub / github.com/apache/cassandra-nodejs-driver / slice

Method slice

lib/host.js:588–595  ·  view source on GitHub ↗

* Returns a shallow copy of a portion of the items into a new array object. * Backward-compatibility. * @param {Number} [begin] * @param {Number} [end] * @returns {Array} * @ignore

(begin, end)

Source from the content-addressed store, hash-verified

586 * @ignore
587 */
588 slice(begin, end) {
589 if (!begin && !end) {
590 // Avoid making a copy of the copy
591 return this.values();
592 }
593
594 return this.values().slice(begin || 0, end);
595 }
596
597 /**
598 * Deprecated: Use set() instead.

Callers 15

addExistingConnectionMethod · 0.45
_attemptNewConnectionMethod · 0.45
removeMethod · 0.45
defineInstanceMembersFunction · 0.45
readValuesFunction · 0.45
streams.jsFile · 0.45
hashMethod · 0.45
_createBranchMethod · 0.45
tuple.jsFile · 0.45
time-uuid.jsFile · 0.45
big-decimal.jsFile · 0.45
checkServerIdentityFunction · 0.45

Calls 1

valuesMethod · 0.95

Tested by

no test coverage detected