Lines Matching refs:rest
242 assertArrayEquals([6, 7, 8, 9], obj.rest);
363 var x, rest, array = [1, 2, 3];
364 assertEquals(array, [x, ...rest] = array);
366 assertEquals([2, 3], rest);
369 assertEquals(array, [, ...rest] = array);
370 assertEquals([5, 6], rest);
439 for ([x.firstLetter, ...x.rest] in object) {
441 assertEquals(["p", "e", "n", "g", "u", "i", "n"], x.rest);
445 assertEquals(["s", "p", "o", "r", "k"], x.rest);
448 log.push({ firstLetter: x.firstLetter, rest: x.rest }); property
451 { firstLetter: "\u{1F382}", rest: ["c", "a", "k", "e"] }, property
452 { firstLetter: "B", rest: ["p", "u", "p", "p", "y"] }, property
465 for ([x.firstLetter, ...x.rest] of names) {
467 assertEquals(["p", "e", "n", "g", "u", "i", "n"], x.rest);
471 assertEquals(["s", "p", "o", "r", "k"], x.rest);
474 log.push({ firstLetter: x.firstLetter, rest: x.rest }); property
477 { firstLetter: "\u{1F382}", rest: ["c", "a", "k", "e"] }, property
478 { firstLetter: "B", rest: ["p", "u", "p", "p", "y"] }, property