Recursively omit keys from an object

  • Type Parameters

    • T extends object

    Parameters

    • obj: T
    • checker: (object: object, propKey: PropertyKey) => boolean

      Checker function which returns true if the object field should be omit

    Returns T