update snippets 62-78

This commit is contained in:
Stefan Feješ
2017-12-25 14:23:06 +01:00
parent 700e6edfe7
commit 038df28ca5
16 changed files with 78 additions and 33 deletions

View File

@ -6,6 +6,9 @@ Use `typeof` to check if a value is classified as a function primitive.
```js
const isFunction = val => val && typeof val === 'function';
// isFunction('x') -> false
// isFunction(x => x) -> true
```
```js
isFunction('x') -> false
isFunction(x => x) -> true
```