Returns whether the given string starts with the prefix
Optional
the source string to check
the target string to compare
whether the given string starts with the prefix
startsWith('foobar', 'foo'); // truestartsWith('hello', 'bar'); // false Copy
startsWith('foobar', 'foo'); // truestartsWith('hello', 'bar'); // false
Returns whether the given string starts with the prefix