vis-util
    Preparing search index...

    Function updateProperty

    • Update a property in an object.

      Type Parameters

      • K extends string
      • V

      Parameters

      • object: Record<K, V>

        The object whose property will be updated.

      • key: K

        Name of the property to be updated.

      • value: V

        The new value to be assigned.

      Returns boolean

      Whether the value was updated (true) or already strictly the same in the original object (false).