Dissecting the underscorejs
Underscore is a set of utility functions written in underscore.With more than 80 different functions to make our lives easier.Its time to dissect them and understand how they work.
Underscore includes some setup code along with the functions below in the raw source of the library.The rest of the 80+ functions are mentioned below:
-
Map method
-
Reduce method
-
ReduceRight method
-
Find method
-
Filter method
-
Reject method
-
Every method
-
Any method
-
Contains method
-
Invoke method
-
Pluck method
-
Where method
-
FindWhere method
-
Max method
-
Min method
-
Shuffle method
-
Sample method
-
SortBy method
-
GroupBy method
-
IndexBy method
-
Countby method
-
SortedIndex method
-
ToArray method
-
Size method
-
First method
-
Initial method
-
Last method
-
Rest method
-
Compact method
-
Flatten method
-
Without method
-
Uniq method
-
Union method
-
Intersection method
-
Difference method
-
Zip method
-
Object method
-
IndexOf method
-
LastIndexOf method
-
Range method
-
Bind method
-
Partial method
-
BindAll method
-
Memoize method
-
Delay method
-
Defer method
-
Throttle method
-
Debounce method
-
Once method
-
Wrap method
-
Compose method
-
After method
-
Keys method
-
Values method
-
Pairs method
-
Invert method
-
Functions method
-
Extend method
-
Omit method
-
Defaults method
-
Clone method
-
Tap method
-
Isequal method
-
isempty method
-
isElement method
-
isArray method
-
isObject method
-
isFinite method
-
isNaN method
-
isBoolean method
-
isNull method
-
isUndefined method
-
has method
-
isFinite method
-
identity method
-
times method
-
random method
-
result method
-
mixin method
-
template method
-
chain method