diegohaz / diegohaz/schm

How to validate if an array is empty?

Open
#52 0 comments 1 reaction 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.