update snippets 62-78
This commit is contained in:
committed by
Agamemnon Zorbas
parent
32fa5a9773
commit
d0a8c3b238
@ -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
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user