Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
iiii233529dWhat that function should be doing?
It's pretty easy to write a function that returns at the first match in a set. Get on it ;)
melezorus34226329d@dhvcc I'm suggesting a wrapper buut it's in JS. Think it like a psuedo code.
//Use this to match element
//The set we are searching in
//the this context is Set.
return matcher(elem) &&
//usage 1. (Not recommended)
Set.prototype.first = first;
var setFirst = first.bind(set);
Whoops, didn't notice it was a bot