Deletes a key-value pair from the provided dictionary based on the specified key. If the key is found, the corresponding key-value pair is removed, and the deleted pair is returned. If the key is not found, undefined is returned.
The type of values stored in the dictionary.
The dictionary object from which to delete the key-value pair.
The key of the key-value pair to be deleted.
(Optional) If true, performs a case-insensitive key comparison.
Deletes a key-value pair from the provided dictionary based on the specified key. If the key is found, the corresponding key-value pair is removed, and the deleted pair is returned. If the key is not found, undefined is returned.