Fix assignment error & remove whitespace

* Fix assignment typo where const noLength wasn't being assigned.
* Remove whitespace created by Travis CI.
This commit is contained in:
Junior
2019-12-02 16:21:22 +00:00
committed by GitHub
parent 3690d13821
commit f6d1d28692

View File

@ -12,36 +12,6 @@ const checkProp = (predicate, prop) => obj => !!predicate(obj[prop]);
```
```js
const lengthIs4 = checkProp(l => l === 4, 'length');
lengthIs4([]); // false
lengthIs4([1,2,3,4]); // true
@ -55,8 +25,8 @@ validUserSession(session); // false
session.user.active = true;
validUserSession(session); // true
const noLength(l => l === undefined, 'length');
const noLength = checkProp(l => l === undefined, 'length');
noLength([]); // false
noLength({}); // true
noLength(new Set()); // true
```
```