Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const users = [
  2.     {
  3.         name: 'A',
  4.         age: 20,
  5.         isAdmin: false,
  6.     },
  7.     {
  8.         name: 'B',
  9.         age: 15,
  10.         isAdmin: true,
  11.     },
  12.     {
  13.         name: 'C',
  14.         age: 35,
  15.         isAdmin: false,
  16.     },
  17. ]
  18.  
  19. // 1) remove the age property from each object
  20. // 2) add property isAdminUnder18 to each object (boolean)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement