javascript in_array snippet like php function; 
needle (ru: игла) - what we want to find;
haystack (ru: стог) - where;