Lines Matching refs:rest
244 assertArrayEquals([6, 7, 8, 9], obj.rest);
365 var x, rest, array = [1, 2, 3];
366 assertEquals(array, [x, ...rest] = array);
368 assertEquals([2, 3], rest);
371 assertEquals(array, [, ...rest] = array);
372 assertEquals([5, 6], rest);
441 for ([x.firstLetter, ...x.rest] in object) {
443 assertEquals(["p", "e", "n", "g", "u", "i", "n"], x.rest);
447 assertEquals(["s", "p", "o", "r", "k"], x.rest);
450 log.push({ firstLetter: x.firstLetter, rest: x.rest }); property
453 { firstLetter: "\u{1F382}", rest: ["c", "a", "k", "e"] }, property
454 { firstLetter: "B", rest: ["p", "u", "p", "p", "y"] }, property
467 for ([x.firstLetter, ...x.rest] of names) {
469 assertEquals(["p", "e", "n", "g", "u", "i", "n"], x.rest);
473 assertEquals(["s", "p", "o", "r", "k"], x.rest);
476 log.push({ firstLetter: x.firstLetter, rest: x.rest }); property
479 { firstLetter: "\u{1F382}", rest: ["c", "a", "k", "e"] }, property
480 { firstLetter: "B", rest: ["p", "u", "p", "p", "y"] }, property