contains Checks if a value exists in an array.
contains(array, element)
Checks if a value exists in an array.
This function returns true or false depending if the element exists in the array.
contains([1,3,4], 4); //returns true
Written by Thomas Rahn, <thomas@sednove.com>
Available from version 5.58