underscore.js Back
According to the official statement, Underscore is a JavaScript library that provides a whole mess of useful functional programming helpers without extending any built-in objects.
Here I will note what other people grasp from this library according to summaries of hanzichi's underscore-analysis.
- Use
void 0
rather thanundefined
- Common type inference and some useful tutorials
- Compatibility problems of
for ... in
- The internal function:
createAssigner()
- How to compare the equality of two elements
- Certain object functions like
pick()
andcreate()
- How to find items in an array
- How to get an array unique
- Flatten an array
- Certain array functions like
compact()
,difference()
, andwithout()
- NaN?
- Array-like Objects
- How to shuffle an array
- Group