endsWith

Check if the given array ends with the given suffix

Template Params: T = The type of the array element

bool
endsWith
(
T
)
(
in T[] arr
,
in T[] suffix
)

Parameters

arr T[]

The array to be tested

suffix T[]

The suffix to test for

Return Value

Type: bool

True if the array ends with the suffix, false otherwise

Meta