Function closure

  • Gets the closure of the given recursive function starting from a given root

    Returns

    the recursive closure of applying the given function on the given root

    Type Parameters

    • T

    • V

    Parameters

    • root: V

      the given root to start the recursion from

    • includeRoot: boolean

      whether to include the root in the closure results

    • recursive: RecursiveCallback<T>

      the function to recurse with

    Returns T[]

Generated using TypeDoc