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
Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.
trim
() => string
Removes the leading and trailing white space and line terminator characters from a string.
substr
(from: number, length?: number | undefined) => string
Gets a substring beginning at the specified location and having the specified length.
valueOf
() => string
Returns the primitive value of the specified object.
RegExpMatchArray
Prop
Type
index
number
input
string
RegExp
Prop
Type
Description
source
string
Returns a copy of the text of the regular expression pattern. Read-only. The regExp argument is a Regular expression object. It can be a variable name or a literal.
global
boolean
Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only.
ignoreCase
boolean
Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only.
multiline
boolean
Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only.