Skip to content

Add someNullOrEmptyStr.or('not null or empty string') #172

Open
@azliR

Description

@azliR

I often come across cases where I have this code:

someNullOrEmptyStr?.isNullOrEmpty ? 'not null or empty str' : someNullOrEmptyStr

I feel like that should be more simplified for example adding or extension or something, like:

someNullOrEmptyStr.or('not null or empty string')

Thanks in advance, your package is so helpful!

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