
- Underscore.JS - Home
- Underscore.JS - Overview
- Underscore.JS - Environment Setup
- Underscore.JS - Iterating Collection
- Underscore.JS - Processing Collection
- Underscore.JS - Iterating Array
- Underscore.JS - Processing Array
- Underscore.JS - Functions
- Underscore.JS - Mapping Objects
- Underscore.JS - Updating Objects
- Underscore.JS - Comparing Objects
- Underscore.JS - Utilities
- Underscore.JS - Chaining
- Underscore.JS Useful Resources
- Underscore.JS - Quick Guide
- Underscore.JS - Useful Resources
- Underscore.JS - Discussion
Underscore.JS - Functions
Underscore.JS has many easy to use methods which helps in handling functions. This chapter discusses them in detail.
Underscore.JS provides various methods to handle functions as listed below −
Sr.No. | Method & Syntax |
---|---|
1 |
bind
_.bind(function, object, *arguments) |
2 |
partial
_.partial(function, *arguments) |
3 |
memoize
_.memoize(function, [hashFunction]) |
4 |
delay
_.delay(function, wait, *arguments) |
5 |
once
_.once(function) |
6 |
before
_.before(count, function) |
7 |
wrap
_.wrap(function, wrapper) |
8 |
negate
_.negate(predicate) |
9 |
compose
_.compose(*functions) |
Advertisements