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

Method slice

src/webgl/p5.DataArray.js:59–61  ·  view source on GitHub ↗

* Returns a copy of the data from the index `from`, inclusive, to the index * `to`, exclusive

(from, to)

Source from the content-addressed store, hash-verified

57 * `to`, exclusive
58 */
59 slice(from, to) {
60 return this.data.slice(from, Math.min(to, this.length));
61 }
62
63 /**
64 * Returns a mutable Float32Array window from the index `from`, inclusive, to

Callers 15

rollup.config.mjsFile · 0.80
sample-linter.mjsFile · 0.80
locationInfoFunction · 0.80
processStrandsFunctionsFunction · 0.80
p5.sound.min.jsFile · 0.80
hFunction · 0.80
p5.sound.jsFile · 0.80
noteToFreqFunction · 0.80
testPropsAllFunction · 0.80
modernizr.jsFile · 0.80
dom.jsFile · 0.80
p5.MediaElement.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected