Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let arr = {}
- Object.setPrototypeOf(arr, Object.getPrototypeOf([]))
- arr.push(1)
- arr.push(2)
- arr.push(3)
- arr.forEach(e => console.log(e))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement