4.17.11
3.10.1
2.4.2
1.3.1
_.startsWith([string=''], [target], [position=0])
Checks if string
starts with the given target string.
Since
3.0.0
Arguments
argument
[string='']
[target]
[position=0]
type
string
string
number
description
The string to inspect.
The string to search for.
The position to search from.
Returns
(array)
Example
_.startsWith("abc", "a");
// => true
_.startsWith("abc", "b");
// => false
_.startsWith("abc", "b", 1);
// => true
_.startsWith("abc", "a");
// => true
_.startsWith("abc", "b");
// => false
_.startsWith("abc", "b", 1);
// => true