tickle/modules/utils/isNotNull.mjs

11 lines
173 B
JavaScript
Raw Normal View History

//@ts-check
/**
* @template T
* @param {T} value
* @returns {value is NonNullable<T>}
*/
export const isNotNull = (value) => value !== null;
export default isNotNull;