Lines Matching refs:Array
99 * Detect if an object looks like an Array.
100 * Note that instanceof Array is not robust; for example an Array
101 * created in another iframe fails instanceof Array.
103 * @return {boolean} Is the object an array?
113 * Finds a slice of an array.
115 * @param {Array} array Array to be sliced.
118 * @return {Array} array The slice of the array from start to end.
120 function arraySlice(array, start, opt_end) {
122 // return Function.prototype.call.apply(Array.prototype.slice, arguments);
124 // return Array.prototype.slice.call(array, start, opt_end);
126 // Array.prototype.slice which causes this function to return an empty list
128 return Function.prototype.call.apply(Array.prototype.slice, arguments);
145 * Clears the array by setting the length property to 0. This usually
149 * @param {Array} array Array to be cleared.
151 function arrayClear(array) {
152 array.length = 0;