UNPKG

@bearz/strings

Version:

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

13 lines (12 loc) 301 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 function isNull(s) { return s === null; }