startsWith

String
since 3.0.0

Returns

boolean `true` if `string` starts with `target`, else `false`.

Checks if string starts with the given target string.

Example of Lodash _.startsWith

_.startsWith('abc', 'a');
// => true

_.startsWith('abc', 'b');
// => false

_.startsWith('abc', 'b', 1);
// => true