1
0
Fork 0

main.d.ts: make startsWith() 2nd arg optional

master
Rob Pilling 2024-07-11 21:20:43 +01:00
parent ce33c3a662
commit 650ceeac21
1 changed files with 1 additions and 1 deletions

View File

@ -11290,7 +11290,7 @@ interface String {
* @returns {boolean} `true` if the given characters are found at the beginning of the string, otherwise, `false`.
* @url http://www.espruino.com/Reference#l_String_startsWith
*/
startsWith(searchString: any, position: number): boolean;
startsWith(searchString: any, position?: number): boolean;
/**
*