Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "coercion/index"

Index

Functions

coerceArray

  • coerceArray<T>(value: T | T[]): T[]
  • Wraps the provided value in an array, unless the provided value is an array.

    Type parameters

    • T

    Parameters

    • value: T | T[]

    Returns T[]

toBoolean

  • toBoolean(value: any, includeZero?: boolean): boolean
  • Parameters

    • value: any
    • Default value includeZero: boolean = false

    Returns boolean

toNumber

  • toNumber(value: any): number
  • toNumber<D>(value: any, fallback: D): number | D

toString

  • toString(value: any): string

Generated using TypeDoc