class V extends Array { constructor(...args) { super(...args); } } var v, m; v = new V(1, 2, 3); m = v.map(val => val * 2); console.log( m instanceof V ); // ...
確定! 回上一頁