Opal-Estate-Pro/node_modules/es5-ext/array/to-array.js
2019-09-13 11:27:52 +07:00

7 lines
177 B
JavaScript

"use strict";
var from = require("./from")
, isArray = Array.isArray;
module.exports = function (arrayLike) { return isArray(arrayLike) ? arrayLike : from(arrayLike); };