It merges the contents of two or more objects together into the first object.
Example of jQuery Extend:Let’s take an example for jQuery.Extend so you can understand it better. In this example we will extend jQuery to print array. Following is a code for that.
Here in the above code I have created a array in document.ready function of jQuery and then I have used jQuery.Extend method to extend jQuery and print array. In print Array method I have used console.log to print array item.
Now when you run this example in Internet explorer developer tool bar. You will get array output as expected.
You can see it’s very easy to extend jQuery with jQuery.Extend. That’s it. Hope you liked it. Stay tuned for more..