Is Object Like
Checks if the value is an object (excluding null).
Category | Objects |
Author | Pol Gubau |
Since | 1.0.0 |
Last Updated | 2025-03-15 |
Type | Sync |
Compatibility | Universal |
Example
Input
isObjectLike({ a: 1 })
Output:
true
Return
Returns `true` if the value is an object and not null, otherwise `false`.
Type: boolean
Props
Name | Type | Default | Required | Description |
---|---|---|---|---|
value | unknown | null | Yes | The value to check. |
Notes
This function is used internally to determine whether the target or source values in the `merge` function should be deeply merged or simply replaced.
Tags
- type check
- object
- null check
Related
- arrays
- universal
- sync
- Since 1.0.0
- validations
- universal
- sync
- Since 1.0.0
- objects
- universal
- sync
- Since 1.0.0
groupBy
Groups the elements of an array based on a provided key-generating function.
isObject
Checks if the provided parameter is a plain object.
cloneDeep
Deep clone an object. A deep clone is a clone of the source object and all of its children, and their children, and so on.