UNPKG

@bearz/strings

Version:

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

11 lines (10 loc) 309 B
/** * The is-null module provides functions to check if a string is null. * @module */ /** * Determines whether the string is null. * @param s The string to check. * @returns `true` if the string is null or undefined; otherwise, `false`. */ export declare function isNull(s: string | null): s is null;