image2text

Untitled

Jul 31st, 2019
173
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. @/(@NT)
  2.  
  3. const persons = Array(5).fill({});
  4.  
  5. persons[0].name = 'uday';
  6.  
  7. const persons = Array(5).fill(null).map(() => ({}));
  8. const persons = Array.from({length:5},()=> ({}));
  9. const persons = [...new Array(5)].map(()=> ({}));
Advertisement
Add Comment
Please, Sign In to add comment