properties icon indicating copy to clipboard operation
properties copied to clipboard

How to remove a property?

Open betonetotbo opened this issue 5 years ago • 1 comments

There is no way to remove a property from an existing PropertiesReader instance.

betonetotbo avatar Sep 30 '19 11:09 betonetotbo

Workaround:

let properties = propertiesReader('input.properties');
//Note: after the line below, properties.length will reflect the new size (as expected).
delete properties._properties['property.to.remove'];

ghuser avatar Jan 11 '23 15:01 ghuser