Travis build: 840 [ci skip]

This commit is contained in:
Travis CI
2018-01-02 08:50:06 +00:00
parent 347cb3558b
commit f9525f865e
3 changed files with 39 additions and 2 deletions

View File

@ -6,7 +6,8 @@ Utilizing a closure, use a flag, `called`, and set it to `true` once the functio
Allow the function to be supplied with an arbitrary number of arguments using the spread (`...`) operator.
```js
const once = fn => (called => (...args) => !called ? (called = true, fn(...args)) : undefined)()
const once = fn =>
(called => (...args) => (!called ? ((called = true), fn(...args)) : undefined))();
```
```js