Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function MyArray(){}
- MyArray.prototype = Object.create(Array.prototype);
- var myArr = new MyArray();
- myArr[0] = 'first';
- console.log(myArr.length); // works correctly
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement