@yesstudio/yes-utils
    Preparing search index...

    Function omit

    • Omits the properties from the source object specified by the keys array and returns a new object without those properties.

      Type Parameters

      • TSource extends Record<string, unknown>

      Parameters

      • source: TSource

        The source object to omit properties from.

      • ...keys: readonly (keyof TSource)[]

        Spread of keys to omit from the source object.

      Returns Omit<TSource, keyof TSource>

      A new object without the omitted properties.

      omit({ a: 1, b: 2, c: 3 }, 'a', 'c')
      // => { b: 2 }