Javascript1

Check out the latest posts

Checking if an Object Exists in an Array

The includes() method in JavaScript allows you to check if a value exists in an array. For primitive types, you can do: const primitiveArray = [1,2,3,4,5] primitiveArray.includes(3) > true You can also pass a second optional argument to includes() defining the first index of the...

You’ve successfully subscribed to Writing Codes
Welcome back! You’ve successfully signed in.
Great! You’ve successfully signed up.
Success! Your email is updated.
Your link has expired
Success! Check your email for magic link to sign-in.