17 lines
273 B
Markdown
17 lines
273 B
Markdown
---
|
|
title: isUndefined
|
|
tags: type,beginner
|
|
---
|
|
|
|
Checks if the specified value is `undefined`.
|
|
|
|
- Use the strict equality operator to check if `val` is equal to `undefined`.
|
|
|
|
```js
|
|
const isUndefined = val => val === undefined;
|
|
```
|
|
|
|
```js
|
|
isUndefined(undefined); // true
|
|
```
|