Underscore.JS Tutorial
Selected Reading
- Underscore.JS - Discussion
- Underscore.JS - Useful Resources
- Underscore.JS - Quick Guide
- Underscore.JS - Chaining
- Underscore.JS - Utilities
- Underscore.JS - Comparing Objects
- Underscore.JS - Updating Objects
- Underscore.JS - Mapping Objects
- Underscore.JS - Functions
- Underscore.JS - Processing Array
- Underscore.JS - Iterating Array
- Underscore.JS - Processing Collection
- Underscore.JS - Iterating Collection
- Underscore.JS - Environment Setup
- Underscore.JS - Overview
- Underscore.JS - Home
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Underscore.JS - Functions
Underscore.JS - Functions
Underscore.JS has many easy to use methods which helps in handpng functions. This chapter discusses them in detail.
Underscore.JS provides various methods to handle functions as psted below −
Sr.No. | Method & Syntax |
---|---|
1 | _.bind(function, object, *arguments) |
2 | _.partial(function, *arguments) |
3 | _.memoize(function, [hashFunction]) |
4 | _.delay(function, wait, *arguments) |
5 | _.once(function) |
6 | _.before(count, function) |
7 | _.wrap(function, wrapper) |
8 | _.negate(predicate) |
9 | _.compose(*functions) |