Miso.Dataset.types. string

Source

Methods

<static> coerce ( v )

Returns: String

Coerces the value to a string.

Parameters

  • v mixed required

    Value to be coerced

Returns

Type: String
Source

<static> compare ( s1, s2 )

Returns: Number

Compares two string type values

Parameters

  • s1 String required

    First value to be compared

  • s2 String required

    Second value to be compared

Returns

Type: Number
Source

<static> numeric ( value )

Returns: Number

Returns the numeric representation of a string value

Parameters

  • value mixed required

    Value to be coerced to numeric

Returns

Type: Number
Source

<static> test ( v )

Returns: Boolean

Tests whether the value is a string.

Parameters

  • v mixed required

    The value to be tested

Returns

Type: Boolean
Source