Tweakr
    Preparing search index...

    Function omitDeep

    • Omits nested properties by paths from an object.

      Parameters

      • obj: any

        Source object

      • paths: string[]

        Array of dot-separated paths

      Returns any

      Object with paths removed

      omitDeep({ a: { b: 1, c: 2 } }, ['a.b']);
      // => { a: { c: 2 } }

      1.2.0