Checking to see if a value is inside an array is typically done with
indexOf(), which rather mind-bogglingly
still requires a shim, as Internet Explorer hasn’t implemented it:
var included = (array.indexOf("test") != -1)
You are currently reading a PREVIEW of this book.
Get instant access to over
$1 million worth of books and videos.