SHARE
TWEET

Untitled

a guest Aug 19th, 2019 106 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const array = [item0, item1, item2, item3, item4 ...];
  2.  
  3. if (array !== undefined && array.length != 0){
  4.     const map = new Map();
  5.     array.forEach((element) => {
  6.         map.set(element.get('userID'), element)
  7.     })
  8.  
  9. };
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top