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

3 lines
89 B
JavaScript
Raw Normal View History

2019-03-21 09:57:27 +01:00
export default (function (arr) {
return Array.isArray(arr) ? arr : Array.from(arr);
});