Skip to content

@longmo-utils/common / isUndefined

Function: isUndefined()

ts
function isUndefined(arg): boolean;

是否是undefined

Parameters

ParameterTypeDescription
argany参数

Returns

boolean

true|false

Example

ts
isUndefined(undefined) // true
isUndefined(a) // true a未定义
isUndefined(void 0) // true

Released under the MIT License.