Does jQuery have an equivalent to Object#tap?
Let’s say I want to do something like this:
foo.append($("<nav>").tap(function (nav) {
$.each(urls, function (url) {
nav.append("<a>").attr(url).text(url)
})
})
It's called .each
nodes.each(inspect).map(mapper).each(inspect).etc()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With