@tuanquynet/

es2016-array.prototype.includes

JavaScript

No description

fork
loading
main.js
1
2
3
4
5
6
console.log(['a', 'b', 'c'].includes('a'));
console.log([1, 2, 3].includes(4));

console.log([, , ,].includes(undefined));
console.log([, , ,].indexOf(undefined));
Native Browser JavaScript