Travis build: 1227

This commit is contained in:
30secondsofcode
2019-06-09 19:07:28 +00:00
parent 645c78f286
commit d716ef5cd7
3 changed files with 1 additions and 40 deletions

View File

@ -9,6 +9,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