Name Description Size
filter.js 8.2.3.13 Tuple.prototype.filter ( callbackfn [ , thisArg ] ) NOTE callbackfn should be a function that accepts three arguments and returns a value that is coercible to the Boolean value true or false. filter calls callbackfn once for each element in the tuple, in ascending order, and constructs a new tuple of all the values for which callbackfn returns true. If a thisArg parameter is provided, it will be used as the this value for each invocation of callbackfn. If it is not provided, undefined is used instead. callbackfn is called with three arguments: the value of the element, the index of the element, and the Tuple being traversed. When the filter method is called with one or two arguments, the following steps are taken: 1. Let T be ? thisTupleValue(this value). 2. Let list be T.[[Sequence]]. 3. Let len be the number of elements in list. 4. If IsCallable(callbackfn) is false, throw a TypeError exception. 5. Let newList be a new empty List. 6. Let k be 0. 7. Repeat, while k < len, a. Let kValue be list[k]. b. Let selected be ! ToBoolean(? Call(callbackfn, thisArg, « kValue, k, T »)). c. If selected is true, then i. Append kValue to the end of list newList. d. Set k to k + 1. 8. Return a new Tuple value whose [[Sequence]] is newLis.t 3336
indexed-setters.js 399
length.js 842