Module: 'brixy.es.types'

Additional methods for work with Extend Script types.

Methods

(static) baseType (value) → {string}

Returns the base type of the value.

Parameters:
Name Type Description
value *

Value to check.

Returns:
  • string
Source:

(static) className (value) → {string}

Returns class name of the value.

Parameters:
Name Type Description
value *

Value to check.

Returns:
  • string
Source:

(static) escapeRegexpStr (str) → {string}

Escapes the special regular expression characters. Prepares a string for use within a regular expression.
Thanks to Mozilla Developer Network.

Parameters:
Name Type Description
str string

Source string.

Returns:
  • string :
    • Escaped string.
Source:

(static) isBoolean (value) → {boolean}

Tests if the value is a type of boolean.

Parameters:
Name Type Description
value *

Value to check.

Returns:
  • boolean
Source:

(static) isNumber (value) → {boolean}

Tests if the value is a type of number.

Parameters:
Name Type Description
value *

Value to check.

Returns:
  • boolean
Source:

(static) isString (value) → {boolean}

Tests if the value is a type of string.

Parameters:
Name Type Description
value *

Value to check.

Returns:
  • boolean
Source:

(static) valueString (value, asClassopt) → {string}

Returns string representation of the value.

Parameters:
Name Type Attributes Description
value *

Value.

asClass string <optional>

If applied, the result string is decorated as if it were a given class. (optional)

Returns:
  • string
Source: