H A D | array-holes.js | 52 function returnTrue() function 90 shouldBe("showHoles([0, , 2, 3].filter(returnTrue))", "'[0, 2, 3]'"); 91 shouldBe("showHoles([0, undefined, 2, 3].filter(returnTrue))", "'[0, undefined, 2, 3]'"); 92 shouldBe("showHoles([0, , 2, 3].map(returnTrue))", "'[true, hole, true, true]'"); 93 shouldBe("showHoles([0, undefined, 2, 3].map(returnTrue))", "'[true, true, true, true]'"); 117 shouldBe("showHoles([0, , 2, 3].filter(returnTrue))", "'[0, peekaboo, 2, 3]'"); 118 shouldBe("showHoles([0, undefined, 2, 3].filter(returnTrue))", "'[0, undefined, 2, 3]'"); 119 shouldBe("showHoles([0, , 2, 3].map(returnTrue))", "'[true, true, true, true]'"); 120 shouldBe("showHoles([0, undefined, 2, 3].map(returnTrue))", "'[true, true, true, true]'");
|