Miso.Dataset.types. mixed

Source

Methods

<static> coerce ( v )

Coerces the value, given the is the mixed type it's a passthrough.

Parameters

  • v mixed required

    Value to be coerced

Source

<static> compare ( s1, s2 )

Returns: Number

Compares two mixed type values

Parameters

  • s1 mixed required

    First value to be compared

  • s2 mixed required

    Second value to be compared

Returns

Type: Number
Source

<static> numeric ( v )

Returns: Number

Parameters

  • v mixed required

    Value to be coerced to numeric

Returns

The numeric representation of a mixed value. If it's an integer, then it coerces it. Otherwise it returns 0.

Type: Number
Source

<static> test ( )

Returns: Boolean

Tests whether the value is of the given type. Given this is the mixed type it will always be true.

Returns

Type: Boolean
Source