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

v0.9.0 #34

Closed jimmed closed 8 years ago

jimmed commented 8 years ago

Adds every, pick, some and unique.

alanclarke commented 8 years ago

rather than pick, would it not be better to have something like .map(obj, .method('attr'))

also do we really need some and every? i thought the whole point of .not and .identity was to get around needing these

jimmed commented 8 years ago

I'm an eejit.

images

It was _.find with identity/not, but either way you're right.

Brb while I delete some stuff xD

jimmed commented 8 years ago

@roberttod @alanclarke what do we reckon?

alanclarke commented 8 years ago

so it might be a good idea that when we have an idea like oh you don't need z because you can just do _.x(_.y)) or whatever, maybe we should document in the readme the reason the function was omitted?

jimmed commented 8 years ago

maybe we should document in the readme the reason the function was omitted?

Yeah, that's not a bad shout. I'll get on it quickly now.

alanclarke commented 8 years ago

beautiful tests