UNPKG

sucrase

Version:

Super-fast alternative to Babel for when you can target modern JS runtimes

7 lines (5 loc) 161 B
var _Array$from = require("../core-js/array/from"); function _toArray(arr) { return Array.isArray(arr) ? arr : _Array$from(arr); } module.exports = _toArray;