Advertisement
nikolayneykov

Untitled

May 26th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let arr = {}
  2.  
  3. Object.setPrototypeOf(arr, Object.getPrototypeOf([]))
  4. arr.push(1)
  5. arr.push(2)
  6. arr.push(3)
  7.  
  8. arr.forEach(e => console.log(e))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement