• Home
  • Raw
  • Download

Lines Matching refs:reduceRight

24 This test checks the behavior of the reduceRight() method on a number of objects.
29 PASS [0,1,2,3].reduceRight(function(a,b){ return a + b; }) is 6
30 PASS [1,2,3].reduceRight(function(a,b){ return a + b; }) is 6
31 PASS [0,1,2,3].reduceRight(function(a,b){ return a + b; }, 4) is 10
32 PASS [1,2,3].reduceRight(function(a,b){ return a + b; }, 4) is 10
33 PASS toObject([0,1,2,3]).reduceRight(function(a,b){ return a + b; }) is 6
34 PASS toObject([1,2,3]).reduceRight(function(a,b){ return a + b; }) is 6
35 PASS toObject([0,1,2,3]).reduceRight(function(a,b){ return a + b; }, 4) is 10
36 PASS toObject([1,2,3]).reduceRight(function(a,b){ return a + b; }, 4) is 10
37 PASS toUnorderedObject([0,1,2,3]).reduceRight(function(a,b){ return a + b; }) is 6
38 PASS toUnorderedObject([1,2,3]).reduceRight(function(a,b){ return a + b; }) is 6
39 PASS toUnorderedObject([0,1,2,3]).reduceRight(function(a,b){ return a + b; }, 4) is 10
40 PASS toUnorderedObject([1,2,3]).reduceRight(function(a,b){ return a + b; }, 4) is 10
41 PASS sparseArray.reduceRight(function(a,b){ return a + b; }, 0) is 10
42 PASS toObject(sparseArray).reduceRight(function(a,b){ return a + b; }, 0) is 10
43 PASS sparseArray.reduceRight(function(a,b){ callCount++; }); callCount is 0
44 PASS toObject(sparseArray).reduceRight(function(a,b){ callCount++; }); callCount is 0
45 PASS sparseArray.reduceRight(function(a,b){ callCount++; }, 0); callCount is 1
46 PASS toObject(sparseArray).reduceRight(function(a,b){ callCount++; }, 0); callCount is 1
47 PASS [0,1,2,3,4].reduceRight(function(a,b){ callCount++; }, 0); callCount is 5
48 PASS [0,1,2,3,4].reduceRight(function(a,b){ callCount++; }); callCount is 4
49 PASS [1, 2, 3, 4].reduceRight(function(a,b, i, thisObj){ thisObj.length--; callCount++; return a + …
50 PASS [1, 2, 3, 4].reduceRight(function(a,b, i, thisObj){ thisObj.length = 1; callCount++; return a …
51 PASS [1, 2, 3, 4].reduceRight(function(a,b, i, thisObj){ thisObj.length++; callCount++; return a + …
52 PASS toObject([1, 2, 3, 4]).reduceRight(function(a,b, i, thisObj){ thisObj.length--; callCount++; r…
53 PASS toObject([1, 2, 3, 4]).reduceRight(function(a,b, i, thisObj){ thisObj.length++; callCount++; r…
54 PASS [[0,1], [2,3], [4,5]].reduceRight(function(a,b) {return a.concat(b);}, []) is [4,5,2,3,0,1]
55 PASS toObject([[0,1], [2,3], [4,5]]).reduceRight(function(a,b) {return a.concat(b);}, []) is [4,5,2…
56 PASS toObject([0,1,2,3,4,5]).reduceRight(function(a,b,i) {return a.concat([i,b]);}, []) is [5,5,4,4…
57 PASS toUnorderedObject([[0,1], [2,3], [4,5]]).reduceRight(function(a,b) {return a.concat(b);}, []) …
58 PASS toUnorderedObject([0,1,2,3,4,5]).reduceRight(function(a,b,i) {return a.concat([i,b]);}, []) is…
59 PASS [0,1,2,3,4,5].reduceRight(function(a,b,i) {return a.concat([i,b]);}, []) is [5,5,4,4,3,3,2,2,1…
60 PASS [2,3].reduceRight(function() {'use strict'; return this;}) is undefined