21 lines
382 B
Markdown
21 lines
382 B
Markdown
---
|
|
title: Value is null
|
|
tags: type
|
|
expertise: beginner
|
|
cover: blog_images/broken-screen.jpg
|
|
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
|
|
```
|