function addNonEnumerableProperty(obj, name, value) {
    Object.defineProperty(obj, name, {
        // enumerable: false, // the default, so we can save on bundle size by not explicitly setting it
        value: value,
        writable: true,
        configurable: true,
    });
}
Defines a non-enumerable property on the given object.

@param obj The object on which to set the property
@param name The name of the property to be set
@param value The value to which to set the property