2020-03-29 13:43:52 +00:00
|
|
|
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
|
|
|
|
[Home](./index.md) > [@apextoaster/js-utils](./js-utils.md) > [isNil](./js-utils.isnil.md)
|
|
|
|
|
|
|
|
## isNil() function
|
|
|
|
|
2021-07-10 21:54:41 +00:00
|
|
|
> Warning: This API is now obsolete.
|
|
|
|
>
|
2022-10-08 19:52:35 +00:00
|
|
|
> use `isNone` instead
|
2021-07-10 21:54:41 +00:00
|
|
|
>
|
|
|
|
|
2020-03-31 02:31:51 +00:00
|
|
|
Check if a value is nil.
|
|
|
|
|
2020-03-29 13:43:52 +00:00
|
|
|
<b>Signature:</b>
|
|
|
|
|
|
|
|
```typescript
|
2021-07-10 21:54:41 +00:00
|
|
|
export declare function isNil<T>(val: Maybe<T>): val is Nil;
|
2020-03-29 13:43:52 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| --- | --- | --- |
|
2021-07-10 21:54:41 +00:00
|
|
|
| val | [Maybe](./js-utils.maybe.md)<!-- --><T> | |
|
2020-03-29 13:43:52 +00:00
|
|
|
|
|
|
|
<b>Returns:</b>
|
|
|
|
|
2020-06-29 23:23:16 +00:00
|
|
|
val is [Nil](./js-utils.nil.md)
|
2020-03-29 13:43:52 +00:00
|
|
|
|