1. Array.prototype.includes()
The includes()
the method determines whether an array includes a certain value among its entries, returning true
or false
as appropriate.
2. Array.prototype.indexOf()
The indexOf()
method returns the first index at which a given element can be found in the array, or -1 if it is not present.
3. Array.isArray()
The Array.isArray()
static method determines whether the passed value is an Array
.
0 comments:
Post a Comment