profileRyan KesPGP keyI build stuffEmailGithubTwitterLast.fmMastodonMatrix

Array.prototype.includes()

Description

Tells you if array includes a certain element:

Syntax

console.log(["a", "b", "c"].includes("a")) // true
console.log(["a", "b", "c"].includes("d")) // false

Related