Tsallaka zuwa abun ciki
Justice Tech School

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

What does get() do after map?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.