MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / _arrayLikeToArray

Function _arrayLikeToArray

static/plugins/pdfmake/pdfmake.js:2279–2279  ·  view source on GitHub ↗
(arr, len)

Source from the content-addressed store, hash-verified

2277function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
2278
2279function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
2280
2281var _require = __webpack_require__(6462),
2282 NumberT = _require.Number;

Callers 2

_arrayWithoutHolesFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected