Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const A = [0, 1, 2],
- B = [2, 1, 0],
- C=[2, 1];
- // A.every( e => B.includes(e) )
- console.log(A.every(e => B.includes(e)));
- console.log(A.every(e => C.includes(e)));
- console.log(C.every(e => B.includes(e)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement