map, is and has
Transform sets and test conditions.
Example
var texts = $("li").map(function () {
return $(this).text();
}).get();
var any = $("li").is(".on");
var wrap = $("ul").has("li.on");Exercise
Test a condition.
$("li").(".on")
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.