SHARE
TWEET

Untitled

a guest Apr 22nd, 2019 92 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const A = [0, 1, 2],
  2.   B = [2, 1, 0],
  3.   C=[2, 1];
  4.  
  5. // A.every( e => B.includes(e) )
  6.  
  7. console.log(A.every(e => B.includes(e)));
  8. console.log(A.every(e => C.includes(e)));
  9. console.log(C.every(e => B.includes(e)));
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