(o, minLen)
| 16 | } |
| 17 | |
| 18 | function _unsupportedIterableToArray(o, minLen) { |
| 19 | if (!o) return; |
| 20 | if (typeof o === "string") return _arrayLikeToArray(o, minLen); |
| 21 | var n = Object.prototype.toString.call(o).slice(8, -1); |
| 22 | if (n === "Object" && o.constructor) n = o.constructor.name; |
| 23 | if (n === "Map" || n === "Set") return Array.from(o); |
| 24 | if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); |
| 25 | } |
| 26 | |
| 27 | function _arrayLikeToArray(arr, len) { |
| 28 | if (len == null || len > arr.length) len = arr.length; |
no test coverage detected