... basic.6 .3. 1 Trimming stringsAlmost inexplicably, the JavaScript String implementation doesn’t possess a method to remove whitespace characters from the beginning and end of a string instance. ... value in the array? If so, you’ll appreciate the $.inArray() function A trivial but illustrative example of using this function isvar index = $.inArray(2,[1,2 ,3, 4,5]);This results in the index ... themselves by setting a request header known as the user agent string. Parsing this string isn’t for the faint-hearted. In addition, many browsers now allow their users to spoof this string, so we...