SHARE
TWEET

Untitled

a guest Aug 25th, 2019 71 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const records = [['name','Mathew'], ['age', 32]];
  2. const obj = Object.fromEntries(records);
  3. // > { name: 'Mathew', age: 32}
  4. Object.entries(obj);
  5. // > [['name','Mathew'], ['age', 32]];
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