3 ms·
@caolanmcmahon: consider using methods? - We have object.defineProperty() in ES5 to avoid enumeration. - You can use user-specified prefixing to avoid future
by nailer 13y ago
@caolanmcmahon: consider using methods?
- We have object.defineProperty() in ES5 to avoid enumeration.
- You can use user-specified prefixing to avoid future conflicts.
Eg:
{foo: 1, bar: 2}.hlPairs();
rather than:
_.pairs({foo: 1, bar: 2});