5 lines
No EOL
200 B
JavaScript
5 lines
No EOL
200 B
JavaScript
function _iterableToArray(iter) {
|
|
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
|
|
}
|
|
|
|
module.exports = _iterableToArray; |