UNPKG

hd-utils

Version:

A handy utils for modern JS developers

9 lines (8 loc) 314 B
/** * @description If the value is undefined, return true, otherwise return false. * @example isUndefined("string") // false * @example isUndefined() // true * @param {unknown} val - unknown - The value to check if it's undefined. */ const isUndefined = (val) => val == undefined; export default isUndefined;