There is no native map to the Object object, but how about this: ... const obj2 = Object.create(obj1); // One of multiple ways to inherit an object in JS.
確定! 回上一頁