Javascript Output arr.slice( 1, 2) : mango arr.slice( 1, 2) : mango,banana some () Javascript array some() method tests whether some element in the array passes the test implemented by the provided function. Syntax Its syntax is as follows: array.some(callback[, thisObject]); Parameter Details callback : Function to test for each element. thisObject : Object to use as this when executing callback. Return Value If some element pass the test, then it returns true, otherwise false. Compatibility This method is a JavaScript extension to the ECMA-262 standard; as such it may not be present in other implementations of the standard. To make it work, you need to add the following code at the top of your script. if (!Array.prototype.some) { Array.prototype.some = function(fun /*, thisp*/) { var len = this.length; if (typeof fun != "function") throw new TypeError(); var thisp = arguments[1]; for (var i = 0; i < len; i++) 213