- endsWith<V>(search, endIndex?): ((source: V extends string
? readonly unknown[] | V<V>
: readonly unknown[]) => boolean) Parameters
- search: V
Optional
endIndex: number
Returns ((source: V extends string
? readonly unknown[] | V<V>
: readonly unknown[]) => boolean)
- (source): boolean
Parameters
- source: V extends string
? readonly unknown[] | V<V>
: readonly unknown[]
Returns boolean
Checks if a value is the end of a source array or string.
Example