UNPKG

@quick-game/cli

Version:

Command line interface for rapid qg development

10 lines (9 loc) 508 B
var arrayLikeToArray = require('./arrayLikeToArray') function _unsupportedIterableToArray (r, e) { if (r) { if (typeof r === 'string') return arrayLikeToArray(r, e) var t = Object.prototype.toString.call(r).slice(8, -1) return (t === 'Object' && r.constructor && (t = r.constructor.name), t === 'Map' || t === 'Set' ? Array.from(r) : t === 'Arguments' || (/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/).test(t) ? arrayLikeToArray(r, e) : void 0) } } module.exports = _unsupportedIterableToArray