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 - Mapping Objects
Underscore.JS - Mapping Objects
Underscore.JS has many easy to use methods which helps in mapping objects. This chapter discusses them in detail.
Underscore.JS provides various methods to handle object mapping as psted below −
Sr.No. | Method & Syntax |
---|---|
1 | _.keys(object) |
2 | _.allKeys(object) |
3 | _.values(object) |
4 | _.mapObject(object, iteratee, [context]) |
5 | _.pairs(object) |
6 | _.invert(object) |
7 | _.create(prototype, props) |
8 | _.functions(object) |
9 | _.findKey(object, predicate, [context]) |