Guest User

Untitled

a guest
Apr 24th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. [{id:1, user:A}, {id:2, user:B}, {id:3, user:C}]
  2.  
  3. const users = await AsyncStorage.getItem('users');
  4. const alteredUsers = users.splice(users.findIndex(x => x.id === someId), 1);
  5. AsyncStorage.setItem('users', alteredUsers);
Add Comment
Please, Sign In to add comment