Los getters y setters también pueden añadirse a un objeto en cualquier momento después de su creación utilizando el método Object.defineProperties.
Getters and setters can also be added to an object at any time after creation using the Object.defineProperties method.
Object.defineProperties, en esencia, define todas las propiedades correspondientes a las propiedades propias con capacidad de enumeración de props en el objeto objrops.
Object.defineProperties, in essence, defines all properties corresponding to the enumerable own properties of props on the object obj object.
El método Object.defineProperties() define nuevas o modifica propiedades existentes directamente en el objeto, returnando el objeto.
The Object.defineProperties() method defines new or modifies existing properties directly on an object, returning the object.
Polyfill Asumiendo una ejecución prístina del entorno con todos los nombres y propiedades referidas a sus valores iniciales, Object.defineProperties es casi completamente equivalente (noote el comentario en isCallable) a la siguiente reimplementación de Objeto
Polyfill Assuming a pristine execution environment with all names and properties referring to their initial values, Object.defineProperties is almost completely equivalent (note the comment in isCallable) to the following reimplementation in JavaScript
Conținut posibil inadecvat
Exemplele au rolul de a te ajuta să traduci cuvinte sau expresii corect si adaptat la context. Nu sunt selectate sau validate manual, așadar pot conține termeni inadecvați. Te rugăm să raportezi exemplele pe care le consideri inadecvate. Traducerile vulgare sau colocviale sunt în general marcate cu roșu sau cu portocaliu.
Nici un rezultat pentru acest sens.
Sinonime și analogii pentru "Object.defineProperties" în limba Română