isSpecialObject
Determines if a value is a special object that should not have its properties compared deeply. Special objects include: Date, Function, Promise, Observable, RegExp, Error, Map, Set, WeakMap, WeakSet, etc.
Available since v2.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
Returns
Section titled “Returns”boolean — true if the value is a special object, false otherwise
Examples
Section titled “Examples”Detect special objects
Section titled “Detect special objects”Returns true for built-in objects like Date, Map, Set, RegExp, etc.
Plain objects are not special
Section titled “Plain objects are not special”Returns false for plain objects and arrays.
