MCPcopy
hub / github.com/processing/p5.js / push

Method push

src/webgl/p5.DataArray.js:49–53  ·  view source on GitHub ↗

* Adds values to the DataArray, expanding its internal storage to * accommodate the new items.

(...values)

Source from the content-addressed store, hash-verified

47 * accommodate the new items.
48 */
49 push(...values) {
50 this.ensureLength(this.length + values.length);
51 this.data.set(values, this.length);
52 this.length += values.length;
53 }
54
55 /**
56 * Returns a copy of the data from the index `from`, inclusive, to the index

Callers

nothing calls this directly

Calls 2

ensureLengthMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected