MCPcopy
hub / github.com/mongodb/node-mongodb-native / pushMany

Method pushMany

src/utils.ts:720–724  ·  src/utils.ts::List.pushMany

Inserts every item inside an iterable instead of the iterable itself

(iterable: Iterable<T>)

Source from the content-addressed store, hash-verified

718
719 /** Inserts every item inside an iterable instead of the iterable itself */
720 pushMany(iterable: Iterable<T>) {
721 for (const value of iterable) {
722 this.push(value);
723 }
724 }
725
726 /** Insert at front of list */
727 unshift(value: T) {

Callers 3

testListShiftFunction · 0.95
utils.test.tsFile · 0.80
sessions.test.tsFile · 0.80

Calls 1

pushMethod · 0.95

Tested by

no test coverage detected