Skip to content

How to validate if an array is empty? #52

Open
@PilotDimitri

Description

@PilotDimitri

Hey guys,

is there a way to return Promise.reject() if the array is empty?

// should return Promise.reject()
validate({foo: []}) 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions