UNPKG

payload-is

Version:

A comprehensive TypeScript/JavaScript type checking library providing functions to check data types, collections, primitives, and built-in objects

17 lines (14 loc) 341 B
'use strict'; function isUndefined(payload) { return typeof payload === "undefined"; } function isNull(payload) { return payload === null; } function isNil(payload) { return isUndefined(payload) || isNull(payload); } exports.isNil = isNil; exports.isNull = isNull; exports.isUndefined = isUndefined; //# sourceMappingURL=nil.cjs.map