Namespace in reactor_core.js

String

3 functions in 2 groups · hide internal

Core runtime: data, input and the ReactorEvents feed.

Quick Reference

Checks (True / False) 1

contains() Checks whether the string contains a given string.

Other 2

format() Replaces %1, %2 and so on in the string to the arguments.
padZero() Makes a number string with leading zeros.

Checks (True / False)

contains

method source
String.prototype.contains(string)

Checks whether the string contains a given string.

Details

Checks whether the string contains a given string.

@memberof
JsExtensions
@param
string string The string to search for.
@returns
boolean True if the string contains a given string.
@deprecated
includes() should be used instead.

Other

format

method source
String.prototype.format()

Replaces %1, %2 and so on in the string to the arguments.

Details

Replaces %1, %2 and so on in the string to the arguments.

@memberof
JsExtensions
@param
...args any The objects to format.
@returns
string A formatted string.

padZero

method source
String.prototype.padZero(length)

Makes a number string with leading zeros.

Details

Makes a number string with leading zeros.

@memberof
JsExtensions
@param
length number The length of the output string.
@returns
string A string with leading zeros.