Skip to content

@longmo-utils/common / isObject

Function: isObject()

ts
function isObject(arg): boolean;

是否是对象

Parameters

ParameterTypeDescription
argany参数

Returns

boolean

true|false

Example

ts
isObject({}) // true
isObject(1) // false
isObject([]) // false

Released under the MIT License.