iwmlib/lib/3rdparty/systemjs/babel-helpers/toArray.js

3 lines
89 B
JavaScript
Executable File

export default (function (arr) {
return Array.isArray(arr) ? arr : Array.from(arr);
});