4 ms·
I don't understand libraries like this. Why would I prefer: $(element).is(selector) to the standard: element.mathes(selector);
by spankalee 11y ago
I don't understand libraries like this. Why would I prefer:
$(element).is(selector)
to the standard:
element.mathes(selector);
- franciscop 11y agoBrowser compatibility [1], array handling instead of just single elements, chainability and flexibility come high up in my list. These are important mainly when there are several elements and not just one. [1] https://github.com/umbrellajs/umbrella/blob/master/src/plugins/filter/filter.js https://github.com/umbrellajs/umbrella/blob/master/src/plugi...