Function asNumber

Parse an attribute as as number with a fallback

0.11.0

  • Parameters

    • Optionalfallback: number = 0

      fallback value

    Returns (value: null | string) => number

    • parser function