pluck
pluck(property) ⇒ array
Get values from a named property of each element in the collection, with null
and undefined
values filtered out.
$('body > *').pluck('nodeName') // => ["DIV", "SCRIPT"]
// implementation of Zepto's `next` method
$.fn.next = function(){
return $(this.pluck('nextElementSibling'))
}
This is a Zepto-provided method that is not part of the jQuery API.