- startsWith<V>(search, fromIndex?): ((source: V extends string
? readonly unknown[] | V<V>
: readonly unknown[]) => boolean) Parameters
- search: V
Optional
fromIndex: 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 start of a source array or string.
Example