MCPcopy Index your code
hub / github.com/microsoft/SandDance / lengthen

Function lengthen

docs/app/js/sanddance-app.js:141222–141227  ·  view source on GitHub ↗
(array2, length, copy)

Source from the content-addressed store, hash-verified

141220 };
141221}
141222function lengthen(array2, length, copy) {
141223 if (array2.length >= length) return array2;
141224 copy = copy || new array2.constructor(length);
141225 copy.set(array2);
141226 return copy;
141227}
141228function array(n, m, array3) {
141229 const copy = (m < 0x101 ? array8 : m < 0x10001 ? array16 : array32)(n);
141230 if (array3) copy.set(array3);

Callers 1

BitmapsFunction · 0.70

Calls 1

setMethod · 0.45

Tested by

no test coverage detected