iwmlib/lib/3rdparty/systemjs/babel-helpers/toArray.js
2019-04-05 10:09:27 +02:00

3 lines
89 B
JavaScript

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