Travis build: 695 [ci skip]
This commit is contained in:
24
README.md
24
README.md
@ -243,6 +243,7 @@
|
||||
* [`isArray`](#isarray)
|
||||
* [`isBoolean`](#isboolean)
|
||||
* [`isFunction`](#isfunction)
|
||||
* [`isNull`](#isnull)
|
||||
* [`isNumber`](#isnumber)
|
||||
* [`isString`](#isstring)
|
||||
* [`isSymbol`](#issymbol)
|
||||
@ -3994,6 +3995,29 @@ isFunction(x => x); // true
|
||||
<br>[⬆ Back to top](#table-of-contents)
|
||||
|
||||
|
||||
### isNull
|
||||
|
||||
Returns `true` if the specified value is `null`, `false` otherwise.
|
||||
|
||||
Use the strict equality operator to check if the value and of `val` are equal to `null`.
|
||||
|
||||
```js
|
||||
const isNull = val => val === null;
|
||||
```
|
||||
|
||||
<details>
|
||||
<summary>Examples</summary>
|
||||
|
||||
```js
|
||||
isNull(null); // true
|
||||
isNull('null'); // false
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
<br>[⬆ Back to top](#table-of-contents)
|
||||
|
||||
|
||||
### isNumber
|
||||
|
||||
Checks if the given argument is a number.
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -9,6 +9,6 @@ const isNull = val => val === null;
|
||||
```
|
||||
|
||||
```js
|
||||
isNull(null) // true
|
||||
isNull('null') // false
|
||||
isNull(null); // true
|
||||
isNull('null'); // false
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user