You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Finds the first substring match in a regular expression search.
440
-
* @param regexp The regular expression pattern and applicable flags.
444
+
* @param regexp The regular expression for matching. If the provided value is not a RegExp, it is implicitly
445
+
* converted to a RegExp by using `new RegExp(regexp)`.
441
446
*/
442
447
search(regexp: string|RegExp): number;
443
448
444
449
/**
445
450
* Returns a section of a string.
446
-
* @param start The index to the beginning of the specified portion of stringObj.
447
-
* @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
448
-
* If this value is not specified, the substring continues to the end of stringObj.
451
+
* @param start The index to the beginning of the specified portion of the string.
452
+
* @param end The index to the end of the specified portion of the string. The substring includes the characters up to, but not including, the character indicated by end.
453
+
* If this value is not specified, the substring continues to the end of the string.
* Returns the substring at the specified location within a String object.
461
-
* @param start The zero-based index number indicating the beginning of the substring.
462
-
* @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
465
+
* Returns the substring beginning at the specified index within a String object.
466
+
* @param start The zero-based index indicating the beginning of the substring.
467
+
* @param end The zero-based index indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
463
468
* If end is omitted, the characters from start through the end of the original string are returned.
464
469
*/
465
470
substring(start: number,end?: number): string;
@@ -484,9 +489,9 @@ interface String {
484
489
485
490
// IE extensions
486
491
/**
487
-
* Gets a substring beginning at the specified location and having the specified length.
492
+
* Gets a substring beginning at the specified index and having the specified length.
488
493
* @deprecated A legacy feature for browser compatibility
489
-
* @param from The starting position of the desired substring. The index of the first character in the string is zero.
494
+
* @param from The starting index of the desired substring. The index of the first character in the string is zero.
490
495
* @param length The number of characters to include in the returned substring.
491
496
*/
492
497
substr(from: number,length?: number): string;
@@ -505,7 +510,7 @@ interface StringConstructor {
505
510
}
506
511
507
512
/**
508
-
* Allows manipulation and formatting of text strings and determination and location of substrings within strings.
513
+
* Allows manipulation and formatting of text strings and determination of location of substrings within strings.
0 commit comments