♨ Sugar.js your CoffeeScript
I encourage you to use sugar.js in your application (but not library) as an alternative to underscore.js. It'll make your code clean, especially if you're using CoffeeScript.
One concern is polluting prototypes of native objects, but Sugar.js leaves Object
's prototype intact, and in practice methods it adds to other natives will never break other code.
Additionally, if you're messing with JavaScript Date
and Time
objects, I suggest using date.js (it has awesome and Sugar.js-compatible API).
Written by Adam Stankiewicz
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Coffeescript
Authors
iam4x
94.17K
ericdfields
63.02K
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#