How to validate if an array is empty?
Open
- Dominant language
- JavaScript
- Stars
- 511
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
Hey guys,
is there a way to return Promise.reject() if the array is empty?
```js
// should return Promise.reject()
validate({foo: []})
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.