Function _pick

  • Create object containing only subset of selected properties

    Type Parameters

    • T extends Record<string, any>

    Parameters

    • arr: (keyof T)[]
    • obj: T

    Returns T