CmpStr - v3.2.1
    Preparing search index...

    Function rmv

    • Delete a value at a specified path in an object.

      Type Parameters

      • T extends Record<string, any>

        The type of the object to get the value from

      Parameters

      • t: T

        The object to delete the value from

      • path: string

        The path string, e.g. a.b.c

      • OptionalpreserveEmpty: boolean = false

        Whether to preserve empty objects/arrays

      Returns T

      • The modified object with the value deleted at the specified path