UNPKG

@bearz/strings

Version:

A collection of string utilities to avoid extra allocations and enable case insensitivity comparisons.

14 lines (13 loc) 321 B
/** * The is-undefined module provides functions to check if a string is undefined. * * @module */ /** * Determines whether the string is undefined. * @param s The string to check. * @returns `true` if the string is undefined; otherwise, `false`. */ export function isUndefined(s) { return s === undefined; }