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 - Comparing Objects
Underscore.JS - Comparing Objects
Underscore.JS has many easy to use methods which helps in comparing objects. This chapter discusses them in detail.
Underscore.JS provides various methods to handle object comparison as psted below −
Sr.No. | Method & Syntax |
---|---|
1 | _.matcher(attrs) |
2 | _.isEqual(object, other) |
3 | _.isMatch(object, properties) |
4 | _.isEmpty(object) |
5 | _.isArray(object) |
6 | _.isObject(value) |
7 | _.isArguments(object) |
8 | _.isFunction(object) |
9 | _.isString(object) |
10 | _.isNumber(object) |
11 | _.isFinite(object) |
12 | _.isBoolean(object) |
13 | _.isDate(object) |
14 | _.isRegExp(object) |
15 | _.isError(object) |
16 | _.isSymbol(object) |
17 | _.isMap(object) |
18 | _.isWeakMap(object) |
19 | _.isSet(object) |
20 | _.isWeakSet(object) |
21 | _.isNaN(object) |
22 | _.isNull(object) |
23 | _.isUndefined(value) |