Documentation
    Preparing search index...

    Function splitObject

    • Splits an object into two objects, one containing the keys provided and the other containing the rest.

      Type Parameters

      • Obj extends object
      • Keys extends readonly (keyof Obj)[]

      Parameters

      • object: Obj

        The object to split

      • keys: Keys

        The keys to pick from the object

      Returns [Pick<Obj, Keys[number]>, Omit<Obj, Keys[number]>]

      A tuple where the first element is an object containing the picked keys and the second element is an object containing the rest