• Preparing search index...
  • The search index is not available
@telostat/prelude - v0.6.0
  • @telostat/prelude
  • numeric
  • decimalFromNullable

Function decimalFromNullable

  • decimalFromNullable(
        x: undefined | null | string | number,
    ): functional.Maybe<numeric.Decimal>
  • Smart constructor that allows undefined and null as argument.

    Parameters

    • x: undefined | null | string | number

      The value to convert to :class.

    Returns functional.Maybe<numeric.Decimal>

    functional!Just finite :class value if argument is a valid, finite numeric value, functional!Nothing otherwise.

    • Defined in src/-numeric.ts:82

Settings

Member Visibility
@telostat/prelude - v0.6.0
  • Loading...

Generated using TypeDoc