UNPKG

typedash

Version:

modern, type-safe collection of utility functions

1 lines 458 B
{"version":3,"sources":["../../src/functions/isNonNullable/isNonNullable.ts"],"names":[],"mappings":";AAKO,SAAS,cAAiB,OAAmC;AAClE,SAAO,SAAS;AAClB","sourcesContent":["/**\n * Checks if a value is not null or undefined.\n * @param value The value to inspect.\n * @returns Returns `true` if the value is NOT `null` or `undefined`, or `false` otherwise.\n */\nexport function isNonNullable<T>(value: T): value is NonNullable<T> {\n return value != null;\n}\n"]}