TOC Toolkit API - v0.1.0
    Preparing search index...

    Function omitField

    • Returns a copy of a record without one key. An update that clears a field that a spread copied drops the key with this function, because a missing key and a key whose value is undefined read the same.

      Type Parameters

      • T extends object
      • K extends string | number | symbol

      Parameters

      • record: T
      • key: K

      Returns Omit<T, K>