Check for a value in array javascript
To check for a value in an array in javascript using the below code snippet:-
const fruit = ["Orange", "Banana", "Apple", "Mango"]; fruit.includes("Mango");
To check for a value in an array in javascript using the below code snippet:-
const fruit = ["Orange", "Banana", "Apple", "Mango"]; fruit.includes("Mango");
Begin typing your search above and press enter to search. Press ESC to cancel.