MCPcopy Index your code
hub / github.com/gpujs/gpu.js / toArray

Function toArray

test/issues/267-immutable-sub-kernels.js:204–206  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

202 const output3 = kernel(output2.result, output2.valueOutput2);
203
204 function toArray(value) {
205 return value.toArray ? value.toArray() : value;
206 }
207
208 assert.equal(toArray(output1.valueOutput1)[0], 20); // 10 + 10
209 assert.equal(toArray(output1.valueOutput2)[0], 70); // 20 + 50

Callers 1

Calls 1

toArrayMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…