SHARE
TWEET

Untitled

a guest Jun 25th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const myObject = {}; // getObjectFromCSV();
  2. const required = ["field1", "field2", "field3"];
  3. const objKeys = Object.keys(myObject);
  4. required.every(key => objKeys.includes(key));
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top