5 lines
200 B
JavaScript
Raw Normal View History

2020-05-19 11:43:42 +03:00
function _iterableToArray(iter) {
if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
}
module.exports = _iterableToArray;