[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [isNil](./js-utils.isnil.md) ## isNil() function > Warning: This API is now obsolete. > > use `isNone` instead > Check if a value is nil. Signature: ```typescript export declare function isNil(val: Maybe): val is Nil; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | val | [Maybe](./js-utils.maybe.md)<T> | | Returns: val is [Nil](./js-utils.nil.md)