Skip to content

@longmo-utils/common / isNull

Function: isNull()

ts
function isNull(arg): boolean;

是否是null

Parameters

ParameterTypeDescription
argany参数

Returns

boolean

true|false

Example

ts
isNull(null) // true
isNull(1) // false

Released under the MIT License.