For instance, we write
const strs = ["abc", "def", "ghi", "jkl", "mno"]; const value = "abc"; const str = strs.find((str) => str === value);
strs.find with a callback that checks if
strs is equal to
If there is such an entry, then the first instance of
str is returned.