Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.


Search for a value in a part of a JavaScript array

node v14.20.1
version: 1.0.0
const numbers = [1, 2, 3, 4, 5]; console.log(numbers.includes(3, 3)); // Output: false console.log(numbers.includes(3, 2)); // Output: true

no comments

    sign in to comment