isObjectLike
Check if the input parameter is an object, excluding functions.
Added in v0.0.1
Usage
ts
import { isObjectLike } from 'parsnip-kit'
isObjectLike({}) // true
isObjectLike(() => {}) // false
API
Arguments
Arg | Type | Optional | Default | Description |
---|---|---|---|---|
arg | any | false | undefined | Parameters for check |
Returns
Type |
---|
boolean |