'use strict';
const RevercedArray = function(...args) {
return Reflect.construct(Array, args, new.target);
};
Object.setPrototypeOf(RevercedArray.prototype, Array.prototype);
const arr = new RevercedArray(1, 2, 3);
console.log(arr); // RevercedArray(3) [ 1, 2, 3 ]