Tsallaka zuwa abun ciki
Justice Tech School

Utility Functions

$.trim, $.isArray, $.extend and $.map help with data.

Example
var o = $.extend({}, { a: 1 }, { b: 2 });
var r = $.map([1, 2, 3], function (x) { return x * 2; });
var yes = $.isArray([1]);

Exercise

Merge objects.

$.({}, a, b)

Quiz Test

What does $.extend do?

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