3 var isFunction = require('../../function/is-function')
5 , slice = Array.prototype.slice, defineProperty = Object.defineProperty
6 , desc = { configurable: true, enumerable: true, writable: true, value: null };
8 module.exports = function (/*…items*/) {
10 if (!this || (this === Array) || !isFunction(this)) return slice.call(arguments);
11 result = new this(l = arguments.length);
12 for (i = 0; i < l; ++i) {
13 desc.value = arguments[i];
14 defineProperty(result, i, desc);