Travis build: 1233

This commit is contained in:
30secondsofcode
2019-06-13 05:07:40 +00:00
parent 2b4eb72ff2
commit e970ed2d2c
5 changed files with 11 additions and 8 deletions

View File

@ -10,6 +10,7 @@ const checkProp = (predicate, prop) => obj => !!predicate(obj[prop]);
```js
const lengthIs4 = checkProp(l => l === 4, 'length');
lengthIs4([]); // false
lengthIs4([1,2,3,4]); // true