Travis build: 999

This commit is contained in:
30secondsofcode
2018-01-03 23:28:00 +00:00
parent 0d96564e4f
commit 31e2adf310
2 changed files with 5 additions and 3 deletions

View File

@ -4904,13 +4904,14 @@ Checks if the given argument is a function.
Use `typeof` to check if a value is classified as a function primitive.
```js
const isFunction = val => val && typeof val === 'function';
const isFunction = val => typeof val === 'function';
```
<details>
<summary>Examples</summary>
```js
isFunction(null); // false
isFunction('x'); // false
isFunction(x => x); // true
```