Skip to main content

Interface: IEthAddressPrimitive

Hierarchy​

  • MobxClearInstance<typeof EthAddressPrimitive>

    ↳ IEthAddressPrimitive

Properties​

length​

• Readonly length: number

Returns the length of a String object.

Inherited from​

MobxClearInstance.length

Methods​

anchor​

â–¸ anchor(name): string

Returns an <a> HTML anchor element and sets the name attribute to the text value

deprecated A legacy feature for browser compatibility

Parameters​

NameType
namestring

Returns​

string

Inherited from​

MobxClearInstance.anchor


big​

â–¸ big(): string

Returns a <big> HTML element

deprecated A legacy feature for browser compatibility

Returns​

string

Inherited from​

MobxClearInstance.big


â–¸ blink(): string

Returns a <blink> HTML element

deprecated A legacy feature for browser compatibility

Returns​

string

Inherited from​

MobxClearInstance.blink


bold​

â–¸ bold(): string

Returns a <b> HTML element

deprecated A legacy feature for browser compatibility

Returns​

string

Inherited from​

MobxClearInstance.bold


charAt​

â–¸ charAt(pos): string

Returns the character at the specified index.

Parameters​

NameTypeDescription
posnumberThe zero-based index of the desired character.

Returns​

string

Inherited from​

MobxClearInstance.charAt


charCodeAt​

â–¸ charCodeAt(index): number

Returns the Unicode value of the character at the specified location.

Parameters​

NameTypeDescription
indexnumberThe zero-based index of the desired character. If there is no character at the specified index, NaN is returned.

Returns​

number

Inherited from​

MobxClearInstance.charCodeAt


codePointAt​

â–¸ codePointAt(pos): undefined | number

Returns a nonnegative integer Number less than 1114112 (0x110000) that is the code point value of the UTF-16 encoded code point starting at the string element at position pos in the String resulting from converting this object to a String. If there is no element at that position, the result is undefined. If a valid UTF-16 surrogate pair does not begin at pos, the result is the code unit at pos.

Parameters​

NameType
posnumber

Returns​

undefined | number

Inherited from​

MobxClearInstance.codePointAt


concat​

â–¸ concat(...strings): string

Returns a string that contains the concatenation of two or more strings.

Parameters​

NameTypeDescription
...stringsstring[]The strings to append to the end of the string.

Returns​

string

Inherited from​

MobxClearInstance.concat


endsWith​

â–¸ endsWith(searchString, endPosition?): boolean

Returns true if the sequence of elements of searchString converted to a String is the same as the corresponding elements of this object (converted to a String) starting at endPosition – length(this). Otherwise returns false.

Parameters​

NameType
searchStringstring
endPosition?number

Returns​

boolean

Inherited from​

MobxClearInstance.endsWith


fixed​

â–¸ fixed(): string

Returns a <tt> HTML element

deprecated A legacy feature for browser compatibility

Returns​

string

Inherited from​

MobxClearInstance.fixed


fontcolor​

â–¸ fontcolor(color): string

Returns a <font> HTML element and sets the color attribute value

deprecated A legacy feature for browser compatibility

Parameters​

NameType
colorstring

Returns​

string

Inherited from​

MobxClearInstance.fontcolor


fontsize​

â–¸ fontsize(size): string

Returns a <font> HTML element and sets the size attribute value

deprecated A legacy feature for browser compatibility

Parameters​

NameType
sizenumber

Returns​

string

Inherited from​

MobxClearInstance.fontsize

â–¸ fontsize(size): string

Returns a <font> HTML element and sets the size attribute value

deprecated A legacy feature for browser compatibility

Parameters​

NameType
sizestring

Returns​

string

Inherited from​

MobxClearInstance.fontsize


includes​

â–¸ includes(searchString, position?): boolean

Returns true if searchString appears as a substring of the result of converting this object to a String, at one or more positions that are greater than or equal to position; otherwise, returns false.

Parameters​

NameTypeDescription
searchStringstringsearch string
position?numberIf position is undefined, 0 is assumed, so as to search all of the String.

Returns​

boolean

Inherited from​

MobxClearInstance.includes


indexOf​

â–¸ indexOf(searchString, position?): number

Returns the position of the first occurrence of a substring.

Parameters​

NameTypeDescription
searchStringstringThe substring to search for in the string
position?numberThe index at which to begin searching the String object. If omitted, search starts at the beginning of the string.

Returns​

number

Inherited from​

MobxClearInstance.indexOf


italics​

â–¸ italics(): string

Returns an <i> HTML element

deprecated A legacy feature for browser compatibility

Returns​

string

Inherited from​

MobxClearInstance.italics


lastIndexOf​

â–¸ lastIndexOf(searchString, position?): number

Returns the last occurrence of a substring in the string.

Parameters​

NameTypeDescription
searchStringstringThe substring to search for.
position?numberThe index at which to begin searching. If omitted, the search begins at the end of the string.

Returns​

number

Inherited from​

MobxClearInstance.lastIndexOf


â–¸ link(url): string

Returns an <a> HTML element and sets the href attribute value

deprecated A legacy feature for browser compatibility

Parameters​

NameType
urlstring

Returns​

string

Inherited from​

MobxClearInstance.link


localeCompare​

â–¸ localeCompare(that): number

Determines whether two strings are equivalent in the current locale.

Parameters​

NameTypeDescription
thatstringString to compare to target string

Returns​

number

Inherited from​

MobxClearInstance.localeCompare

â–¸ localeCompare(that, locales?, options?): number

Determines whether two strings are equivalent in the current or specified locale.

Parameters​

NameTypeDescription
thatstringString to compare to target string
locales?string | string[]A locale string or array of locale strings that contain one or more language or locale tags. If you include more than one locale string, list them in descending order of priority so that the first entry is the preferred locale. If you omit this parameter, the default locale of the JavaScript runtime is used. This parameter must conform to BCP 47 standards; see the Intl.Collator object for details.
options?CollatorOptionsAn object that contains one or more properties that specify comparison options. see the Intl.Collator object for details.

Returns​

number

Inherited from​

MobxClearInstance.localeCompare


match​

â–¸ match(regexp): null | RegExpMatchArray

Matches a string with a regular expression, and returns an array containing the results of that search.

Parameters​

NameTypeDescription
regexpstring | RegExpA variable name or string literal containing the regular expression pattern and flags.

Returns​

null | RegExpMatchArray

Inherited from​

MobxClearInstance.match

â–¸ match(matcher): null | RegExpMatchArray

Matches a string or an object that supports being matched against, and returns an array containing the results of that search, or null if no matches are found.

Parameters​

NameTypeDescription
matcherObjectAn object that supports being matched against.
matcher.[match](string: string) => null | RegExpMatchArray-

Returns​

null | RegExpMatchArray

Inherited from​

MobxClearInstance.match


normalize​

â–¸ normalize(form): string

Returns the String value result of normalizing the string into the normalization form named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.

Parameters​

NameTypeDescription
form"NFC" | "NFD" | "NFKC" | "NFKD"Applicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC"

Returns​

string

Inherited from​

MobxClearInstance.normalize

â–¸ normalize(form?): string

Returns the String value result of normalizing the string into the normalization form named by form as specified in Unicode Standard Annex #15, Unicode Normalization Forms.

Parameters​

NameTypeDescription
form?stringApplicable values: "NFC", "NFD", "NFKC", or "NFKD", If not specified default is "NFC"

Returns​

string

Inherited from​

MobxClearInstance.normalize


padEnd​

â–¸ padEnd(maxLength, fillString?): string

Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. The padding is applied from the end (right) of the current string.

Parameters​

NameTypeDescription
maxLengthnumberThe length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is.
fillString?stringThe string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020).

Returns​

string

Inherited from​

MobxClearInstance.padEnd


padStart​

â–¸ padStart(maxLength, fillString?): string

Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length. The padding is applied from the start (left) of the current string.

Parameters​

NameTypeDescription
maxLengthnumberThe length of the resulting string once the current string has been padded. If this parameter is smaller than the current string's length, the current string will be returned as it is.
fillString?stringThe string to pad the current string with. If this string is too long, it will be truncated and the left-most part will be applied. The default value for this parameter is " " (U+0020).

Returns​

string

Inherited from​

MobxClearInstance.padStart


repeat​

â–¸ repeat(count): string

Returns a String value that is made from count copies appended together. If count is 0, the empty string is returned.

Parameters​

NameTypeDescription
countnumbernumber of copies to append

Returns​

string

Inherited from​

MobxClearInstance.repeat


replace​

â–¸ replace(searchValue, replaceValue): string

Replaces text in a string, using a regular expression or search string.

Parameters​

NameTypeDescription
searchValuestring | RegExpA string to search for.
replaceValuestringA string containing the text to replace for every successful match of searchValue in this string.

Returns​

string

Inherited from​

MobxClearInstance.replace

â–¸ replace(searchValue, replacer): string

Replaces text in a string, using a regular expression or search string.

Parameters​

NameTypeDescription
searchValuestring | RegExpA string to search for.
replacer(substring: string, ...args: any[]) => stringA function that returns the replacement text.

Returns​

string

Inherited from​

MobxClearInstance.replace

â–¸ replace(searchValue, replaceValue): string

Replaces first match with string or all matches with RegExp.

Parameters​

NameTypeDescription
searchValueObjectA string or RegExp search value.
searchValue.[replace](string: string, replaceValue: string) => string-
replaceValuestringA string containing the text to replace for match.

Returns​

string

Inherited from​

MobxClearInstance.replace

â–¸ replace(searchValue, replacer): string

Replaces text in a string, using an object that supports replacement within a string.

Parameters​

NameTypeDescription
searchValueObjectA object can search for and replace matches within a string.
searchValue.[replace](string: string, replacer: (substring: string, ...args: any[]) => string) => string-
replacer(substring: string, ...args: any[]) => stringA function that returns the replacement text.

Returns​

string

Inherited from​

MobxClearInstance.replace


â–¸ search(regexp): number

Finds the first substring match in a regular expression search.

Parameters​

NameTypeDescription
regexpstring | RegExpThe regular expression pattern and applicable flags.

Returns​

number

Inherited from​

MobxClearInstance.search

â–¸ search(searcher): number

Finds the first substring match in a regular expression search.

Parameters​

NameTypeDescription
searcherObjectAn object which supports searching within a string.
searcher.[search](string: string) => number-

Returns​

number

Inherited from​

MobxClearInstance.search


slice​

â–¸ slice(start?, end?): string

Returns a section of a string.

Parameters​

NameTypeDescription
start?numberThe index to the beginning of the specified portion of stringObj.
end?numberThe 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. If this value is not specified, the substring continues to the end of stringObj.

Returns​

string

Inherited from​

MobxClearInstance.slice


small​

â–¸ small(): string

Returns a <small> HTML element

deprecated A legacy feature for browser compatibility

Returns​

string

Inherited from​

MobxClearInstance.small


split​

â–¸ split(separator, limit?): string[]

Split a string into substrings using the specified separator and return them as an array.

Parameters​

NameTypeDescription
separatorstring | RegExpA string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
limit?numberA value used to limit the number of elements returned in the array.

Returns​

string[]

Inherited from​

MobxClearInstance.split

â–¸ split(splitter, limit?): string[]

Split a string into substrings using the specified separator and return them as an array.

Parameters​

NameTypeDescription
splitterObjectAn object that can split a string.
splitter.[split](string: string, limit?: number) => string[]-
limit?numberA value used to limit the number of elements returned in the array.

Returns​

string[]

Inherited from​

MobxClearInstance.split


startsWith​

â–¸ startsWith(searchString, position?): boolean

Returns true if the sequence of elements of searchString converted to a String is the same as the corresponding elements of this object (converted to a String) starting at position. Otherwise returns false.

Parameters​

NameType
searchStringstring
position?number

Returns​

boolean

Inherited from​

MobxClearInstance.startsWith


strike​

â–¸ strike(): string

Returns a <strike> HTML element

deprecated A legacy feature for browser compatibility

Returns​

string

Inherited from​

MobxClearInstance.strike


sub​

â–¸ sub(): string

Returns a <sub> HTML element

deprecated A legacy feature for browser compatibility

Returns​

string

Inherited from​

MobxClearInstance.sub


substr​

â–¸ substr(from, length?): string

Gets a substring beginning at the specified location and having the specified length.

deprecated A legacy feature for browser compatibility

Parameters​

NameTypeDescription
fromnumberThe starting position of the desired substring. The index of the first character in the string is zero.
length?numberThe number of characters to include in the returned substring.

Returns​

string

Inherited from​

MobxClearInstance.substr


substring​

â–¸ substring(start, end?): string

Returns the substring at the specified location within a String object.

Parameters​

NameTypeDescription
startnumberThe zero-based index number indicating the beginning of the substring.
end?numberZero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end. If end is omitted, the characters from start through the end of the original string are returned.

Returns​

string

Inherited from​

MobxClearInstance.substring


sup​

â–¸ sup(): string

Returns a <sup> HTML element

deprecated A legacy feature for browser compatibility

Returns​

string

Inherited from​

MobxClearInstance.sup


toLocaleLowerCase​

â–¸ toLocaleLowerCase(locales?): string

Converts all alphabetic characters to lowercase, taking into account the host environment's current locale.

Parameters​

NameType
locales?string | string[]

Returns​

string

Inherited from​

MobxClearInstance.toLocaleLowerCase


toLocaleUpperCase​

â–¸ toLocaleUpperCase(locales?): string

Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale.

Parameters​

NameType
locales?string | string[]

Returns​

string

Inherited from​

MobxClearInstance.toLocaleUpperCase


toLowerCase​

â–¸ toLowerCase(): string

Converts all the alphabetic characters in a string to lowercase.

Returns​

string

Inherited from​

MobxClearInstance.toLowerCase


toString​

â–¸ toString(): string

Returns a string representation of a string.

Returns​

string

Inherited from​

MobxClearInstance.toString


toUpperCase​

â–¸ toUpperCase(): string

Converts all the alphabetic characters in a string to uppercase.

Returns​

string

Inherited from​

MobxClearInstance.toUpperCase


trim​

â–¸ trim(): string

Removes the leading and trailing white space and line terminator characters from a string.

Returns​

string

Inherited from​

MobxClearInstance.trim


trimLeft​

â–¸ trimLeft(): string

Removes whitespace from the left end of a string.

Returns​

string

Inherited from​

MobxClearInstance.trimLeft


trimRight​

â–¸ trimRight(): string

Removes whitespace from the right end of a string.

Returns​

string

Inherited from​

MobxClearInstance.trimRight


valueOf​

â–¸ valueOf(): string

Returns the primitive value of the specified object.

Returns​

string

Inherited from​

MobxClearInstance.valueOf