19 lines
487 B
JavaScript
19 lines
487 B
JavaScript
// Metro module 4304 (f4305).
|
|
const hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
module.exports = function initCloneArray(a0) {
|
|
let length = a0.length;
|
|
const constructor = new a0.constructor(length);
|
|
if (length) {
|
|
length = typeof a0[0] === "string";
|
|
}
|
|
if (length) {
|
|
const call = hasOwnProperty.call;
|
|
length = hasOwnProperty.call(a0, "index");
|
|
}
|
|
if (length) {
|
|
constructor.index = a0.index;
|
|
constructor.input = a0.input;
|
|
}
|
|
return constructor;
|
|
};
|