Contains Value in JavaScript

Posted by yhuang
Public (Editable by Users)
JavaScript
None
Edit
console.log([1, 2, 3].includes(2));
console.log([1, 2, 3].includes(4));

console.log(['some', 'simple', 'words'].includes(123));
console.log(['some', 'simple', 'words'].includes('words'));