• Home
  • Raw
  • Download

Lines Matching full:result

59         const result = [1, 2, 3, 4].findIndex((x, i, arr) => {  variable
63 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 2
68 const result = [1, 2, 3, 4].findIndex((x, i, arr) => { variable
72 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: -1
77 const result = [].findIndex((x, i, arr) => { variable
81 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: -1
86 const result = [false, 0, ''].findIndex((x, i, arr) => { variable
90 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 0
95 const result = [1, 2, 3, 4].findIndex((x, i, arr) => { variable
99 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 2
104 const result = [null, 1, 2].findIndex((x, i, arr) => { variable
108 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 1
114 const result = arr.findIndex((x, i, arrRef) => {
119 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 2
124 const result = [NaN, 1, 2].findIndex((x, i, arr) => { variable
128 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 1
133 const result = [1, 2, 3].findIndex((x, i, arr) => { variable
137 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: -1
142 const result = [1, 2, 3].findIndex((x, i, arr) => { variable
146 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 0
152 const result = [1, 2, 3, 4].findIndex(function(x, i, arr) { variable
156 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 2
161 const result = [{ id: 1 }, { id: 2 }].findIndex((x, i, arr) => { variable
165 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 1
171 const result = [obj, obj].findIndex((x, i, arr) => { variable
176 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 0
181 const result = [].findIndex((x, i, arr) => { variable
185 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: -1
192 const result = arr.findIndex((x, i, arrRef) => {
197 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 1
202 const result = [[1], [2], [3]].findIndex((x, i, arr) => { variable
206 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 1
211 const result = [1, 2, 3, -1, 5].findIndex((x, i, arr) => { variable
215 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 3
220 const result = ['apple', 'banana', 'cherry'].findIndex((x, i, arr) => { variable
224 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 1
229 const result = [{ name: 'Alice' }, { name: 'Bob' }].findIndex((x, i, arr) => { variable
233 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 1
238 const result = [{ age: 30 }, { age: 25 }, { age: 30 }].findIndex((x, i, arr) => { variable
242 print("Log:", JSON.stringify(log), "Result:", JSON.stringify(result)); // Result: 0