javascript .firstordefault

JavaScript
let array = ["vera", "chuck", "dave"];
let val = array.find(x => x === "vera");
Source

Also in JavaScript: