Finding String In JS Array
https://www.tjvantoll.com/2013/03/14/better-ways-of-comparing-a-javascript-string-to-multiple-values/
var dingetje = 'tiger';
['tiger', 'foo', 'bar'].includes(dingetje);
>> true
Pretty slick, for JS.
https://www.tjvantoll.com/2013/03/14/better-ways-of-comparing-a-javascript-string-to-multiple-values/
var dingetje = 'tiger';
['tiger', 'foo', 'bar'].includes(dingetje);
>> true
Pretty slick, for JS.