Home > @dinofe/xt-core > isNormalObject

# isNormalObject() function

是否为普通对象

Signature:

export declare function isNormalObject(a: any): boolean;

# Parameters

Parameter Type Description
a any 待校验的数据

Returns:

boolean

判断结果

# Remarks

看 toString 是否是 '[object Object]'

# Example

import { isNormalObject } from '@dinofe/xt-core/common'
isNormalObject({ foo: 'bar' }) // true