Function defaultArg

  • Returns the fallback if the given object is undefined. Take an array of arguments and return a formatted options object.

    Type Parameters

    • T

    Parameters

    • given: T
    • fallback: T

    Returns T