19 lines
327 B
Markdown
19 lines
327 B
Markdown
---
|
|
title: isNull
|
|
tags: type,beginner
|
|
firstSeen: 2017-12-31T12:26:19+02:00
|
|
lastUpdated: 2020-10-20T23:02:01+03:00
|
|
---
|
|
|
|
Checks if the specified value is `null`.
|
|
|
|
- Use the strict equality operator to check if the value of `val` is equal to `null`.
|
|
|
|
```js
|
|
const isNull = val => val === null;
|
|
```
|
|
|
|
```js
|
|
isNull(null); // true
|
|
```
|