Object.defineProperties()
The Object.defineProperties() method defines new or modifies existing properties directly on an object, returning the object. The object on which to define or modify properties. An object whose keys represent the names of properties to be defined or modified and whose values are objects describing those properties.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/defineProperties