Skip to content

$endsWith and $startsWith throw error when input is undefined #133

Closed
@mechanik-daniel

Description

@mechanik-daniel

Both functions $endsWith and $startsWith throw an error when the input is undefined.
They should behave like $contains, where undefined input returns undefined.

To reproduce:
$endsWith(undefined,'a')

Returns:
Cannot read properties of undefined (reading 'endsWith')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or requestreleased

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions