Nest all content into snippets
This commit is contained in:
20
snippets/js/s/is-undefined.md
Normal file
20
snippets/js/s/is-undefined.md
Normal file
@ -0,0 +1,20 @@
|
||||
---
|
||||
title: Value is undefined
|
||||
type: snippet
|
||||
language: javascript
|
||||
tags: [type]
|
||||
cover: peaches
|
||||
dateModified: 2020-10-20T23:02:01+03:00
|
||||
---
|
||||
|
||||
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
|
||||
```
|
||||
Reference in New Issue
Block a user