StartsWith tests a string to see if it starts with a substring
string
(string): input stringsubstr
(string): substring to test
(boolean): does the input start with the substring?
const result = strings.startsWith('This sentence starts with', 'This');
console.log(result);
> true