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

Function _arrayLikeToArray

docs/app/js/sanddance-app.js:53853–53857  ·  view source on GitHub ↗
(arr, len)

Source from the content-addressed store, hash-verified

53851 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
53852}
53853function _arrayLikeToArray(arr, len) {
53854 if (len == null || len > arr.length) len = arr.length;
53855 for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
53856 return arr2;
53857}
53858function toArrayBuffer(data) {
53859 if (_bufferUtilsNode.toArrayBuffer) data = _bufferUtilsNode.toArrayBuffer(data);
53860 if (data instanceof ArrayBuffer) return data;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected