removeSuffix

Remove the given suffix from the given array.

Template Params: T = The type of the array element

T1[]
removeSuffix
(
T1
T2
)
(
T1[] arr
,
in T2[] suffix
)

Parameters

arr T1[]

The array from which the suffix is to be removed

suffix T2[]

The suffix to remove

Return Value

Type: T1[]

A slice without the suffix if successful, the original array otherwise

Meta