MCPcopy Create free account
hub / github.com/diffgram/diffgram / _slicedToArray

Function _slicedToArray

frontend/src/utils/colorUtils.js:77–77  ·  view source on GitHub ↗
(arr, i)

Source from the content-addressed store, hash-verified

75function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
76
77function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _nonIterableRest(); }
78
79function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance"); }
80

Callers 1

classToHexFunction · 0.85

Calls 3

_arrayWithHolesFunction · 0.85
_iterableToArrayLimitFunction · 0.85
_nonIterableRestFunction · 0.85

Tested by

no test coverage detected