.map()
methodThe .map(callback)
method in jQuery is used to produce a new jQuery object through a callback
functions.
.map()
method Syntax.map(callback)
.map()
method ExampleGet the data of a collection of elements.
$( "li" ) .map(function() { return $(this).data('type'); }) .get() .join();