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 - Utilities
Underscore.JS - Utipties
Underscore.JS has many easy to use utipty methods. This chapter discusses them in detail.
Underscore.JS provides various utipty methods as psted below −
Sr.No. | Method & Syntax |
---|---|
1 | _.identity(value) |
2 | _.constant(value) |
3 | _.noop() |
4 | _.times(n, iteratee, [context]) |
5 | _.random(min, max) |
6 | _.mixin(object) |
7 | _.iteratee(value, [context]) |
8 | _.uniqueId([prefix]) |
9 | _.escape(string) |
10 | _.unescape(string) |
11 | _.result(object, property, [defaultValue]) |
12 | _.now() |
13 | _.template(templateString, [settings]) |