QubitProducts / slapdash

A lightweight JavaScript utility belt with native method override protection
http://npmjs.org/packages/slapdash
MIT License
3 stars 1 forks source link

Add `some` method #45

Closed Olical closed 8 years ago

Olical commented 8 years ago

This is the first of many methods I'll be adding in the future. I didn't keep to the exact ES5 spec, it's leaning towards how underscore works, so it will prefer returning false and defaulting the predicate over throwing.

Let me know if we need to improve functionality, tests, performance or file size :)

swagatha-christie commented 8 years ago

By analyzing the blame information on this pull request, we identified @jimmed to be a potential reviewer

Olical commented 8 years ago

My plan is to take my underscory methods from https://github.com/qubitdigital/visitor-engine-utils/blob/master/src/extra.js and make them pass through to the native methods. So it's not exactly ES5, but somewhere inbetween.

jimmed commented 8 years ago

:shipit: 👍