omit | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...

    Function omit

    • Returns an object with a selection of properties left out

      Type Parameters

      • T extends object

        Type of the supplied object

      • K extends string

        Type of the property keys to leave out

      Parameters

      • obj: T

        Object to leave properties out of

      • keys: readonly K[]

        Names of the properties to remove

      Returns DistributedOmit<T, K>

      Resulting object

    • Returns an array with a selection of properties left out

      Type Parameters

      • T extends object

        Type of the supplied array

      • K extends string

        Type of the property keys to leave out

      Parameters

      • arr: T[]
      • keys: readonly K[]

        Names of the properties to leave out

      Returns DistributedOmit<T, K>[]

      Resulting array