Function pickProperties

  • Sometimes, you want a subset of an object, with just a few properties That's what this function does

    Type Parameters

    • O extends object

    Parameters

    • keys: (keyof O)[]

    Returns ((o) => Partial<O>)