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 `get`, `set`, `identity` and `not` #30

Closed jimmed closed 8 years ago

jimmed commented 8 years ago

@alanclarke @roberttod @oliverwoodings

oliverwoodings commented 8 years ago

I think I prefer get and set, rather than attr. I don't like that attr can both get and set, depending on what arguments you pass it.

jimmed commented 8 years ago

I don't like that attr can both get and set, depending on what arguments you pass it.

I mostly did this in the name of filesize, but seeing as it is a little unpredictable, I'll see what I can do about implementing it in a small way.

jimmed commented 8 years ago

The new methods have sadly pushed us up to a 1.1kb gzipped bundle, but it's well worth it for a clear API!

alanclarke commented 8 years ago

awesome! 👍