Travis build: 695 [ci skip]
This commit is contained in:
24
README.md
24
README.md
@ -243,6 +243,7 @@
|
|||||||
* [`isArray`](#isarray)
|
* [`isArray`](#isarray)
|
||||||
* [`isBoolean`](#isboolean)
|
* [`isBoolean`](#isboolean)
|
||||||
* [`isFunction`](#isfunction)
|
* [`isFunction`](#isfunction)
|
||||||
|
* [`isNull`](#isnull)
|
||||||
* [`isNumber`](#isnumber)
|
* [`isNumber`](#isnumber)
|
||||||
* [`isString`](#isstring)
|
* [`isString`](#isstring)
|
||||||
* [`isSymbol`](#issymbol)
|
* [`isSymbol`](#issymbol)
|
||||||
@ -3994,6 +3995,29 @@ isFunction(x => x); // true
|
|||||||
<br>[⬆ Back to top](#table-of-contents)
|
<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
|
### isNumber
|
||||||
|
|
||||||
Checks if the given argument is a number.
|
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
|
```js
|
||||||
isNull(null) // true
|
isNull(null); // true
|
||||||
isNull('null') // false
|
isNull('null'); // false
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user