@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Object")
public class JsObject
extends java.lang.Object
| Modifier | Constructor and Description |
|---|---|
protected |
JsObject() |
| Modifier and Type | Method and Description |
|---|---|
static JsObject |
assign(JsObject target,
JsObject... sources)
The Object.assign() method copies all enumerable own properties from one or more source objects to a target object.
|
static JsObject |
create(JsObject proto)
The Object.create() method creates a new object, using an existing object as the prototype of the newly created object.
|
static JsObject |
create(JsObject proto,
jsinterop.base.JsPropertyMap<ObjectPropertyDescriptor> props)
The Object.create() method creates a new object, using an existing object as the prototype of the newly created object.
|
static void |
defineProperties(JsObject obj,
jsinterop.base.JsPropertyMap<ObjectPropertyDescriptor> props)
The Object.defineProperties() method defines new or modifies existing properties directly on an object, returning the object.
|
static void |
defineProperty(JsObject obj,
java.lang.String prop,
ObjectPropertyDescriptor descriptor)
The static method Object.defineProperty() defines a new property directly on an object, or modifies an existing property on an object, and returns the object.
|
static void |
defineProperty(JsObject obj,
Symbol prop,
ObjectPropertyDescriptor descriptor)
The static method Object.defineProperty() defines a new property directly on an object, or modifies an existing property on an object, and returns the object.
|
static JsArray<ObjectPropertyEntry> |
entries(JsObject obj)
The Object.entries() method returns an array of a given object's own enumerable string-keyed property [key, value] pairs, in the same order as that provided by a for...in loop.
|
static void |
freeze(JsObject obj)
The Object.freeze() method freezes an object.
|
static JsObject |
fromEntries(JsIterable<ObjectPropertyEntry> iterable)
The Object.fromEntries() method transforms a list of key-value pairs into an object.
|
static ObjectPropertyDescriptor |
getOwnPropertyDescriptor(JsObject obj,
java.lang.String prop)
The Object.getOwnPropertyDescriptor() method returns an object describing the configuration of a specific property on a given object (that is, one directly present on an object and not in the object's prototype chain).
|
static ObjectPropertyDescriptor |
getOwnPropertyDescriptor(JsObject obj,
Symbol prop)
The Object.getOwnPropertyDescriptor() method returns an object describing the configuration of a specific property on a given object (that is, one directly present on an object and not in the object's prototype chain).
|
static JsArray<ObjectPropertyDescriptor> |
getOwnPropertyDescriptors(JsObject obj)
The Object.getOwnPropertyDescriptors() method returns all own property descriptors of a given object.
|
static JsArray<java.lang.String> |
getOwnPropertyNames(JsObject obj)
The Object.getOwnPropertyNames() method returns an array of all properties (including non-enumerable properties except for those which use Symbol) found directly in a given object.
|
static JsArray<Symbol> |
getOwnPropertySymbols(JsObject obj)
The Object.getOwnPropertySymbols() method returns an array of all symbol properties found directly upon a given object.
|
static JsObject |
getPrototypeOf(JsObject obj)
The Object.getPrototypeOf() method returns the prototype (i.e.
|
static boolean |
is(JsObject value1,
JsObject value2)
The Object.is() method determines whether two values are the same value.
|
static boolean |
isExtensible(JsObject obj)
The Object.isExtensible() method determines if an object is extensible (whether it can have new properties added to it).
|
static boolean |
isFrozen(JsObject obj)
The Object.isFrozen() determines if an object is frozen.
|
static boolean |
isSealed(JsObject obj)
The Object.isSealed() method determines if an object is sealed.
|
static JsArray<java.lang.String> |
keys(JsObject obj)
The Object.keys() method returns an array of a given object's own enumerable property names, iterated in the same order that a normal loop would.
|
static void |
preventExtensions(JsObject obj)
The Object.preventExtensions() method prevents new properties from ever being added to an object (i.e.
|
static void |
seal(JsObject obj)
The Object.seal() method seals an object, preventing new properties from being added to it and marking all existing properties as non-configurable.
|
static void |
setPrototypeOf(JsObject obj,
JsObject prototype)
The Object.setPrototypeOf() method sets the prototype (i.e., the internal [[Prototype]] property) of a specified object to another object or null.
|
static JsArray<jsinterop.base.Any> |
values(JsObject obj)
The Object.values() method returns an array of a given object's own enumerable property values, in the same order as that provided by a for...in loop.
|
@Nonnull public static JsObject assign(@Nonnull JsObject target, @Nonnull JsObject... sources)
@Nonnull public static JsObject create(@Nullable JsObject proto, @Nullable jsinterop.base.JsPropertyMap<ObjectPropertyDescriptor> props)
@Nonnull public static JsObject create(@Nullable JsObject proto)
public static void defineProperties(@Nonnull
JsObject obj,
@Nonnull
jsinterop.base.JsPropertyMap<ObjectPropertyDescriptor> props)
public static void defineProperty(@Nonnull
JsObject obj,
@Nonnull
java.lang.String prop,
@Nonnull
ObjectPropertyDescriptor descriptor)
public static void defineProperty(@Nonnull
JsObject obj,
@Nonnull
Symbol prop,
@Nonnull
ObjectPropertyDescriptor descriptor)
@Nonnull public static JsArray<ObjectPropertyEntry> entries(@Nonnull JsObject obj)
public static void freeze(@Nonnull
JsObject obj)
@Nonnull public static JsObject fromEntries(@Nonnull JsIterable<ObjectPropertyEntry> iterable)
@Nullable public static ObjectPropertyDescriptor getOwnPropertyDescriptor(@Nonnull JsObject obj, @Nonnull java.lang.String prop)
@Nullable public static ObjectPropertyDescriptor getOwnPropertyDescriptor(@Nonnull JsObject obj, @Nonnull Symbol prop)
@Nonnull public static JsArray<ObjectPropertyDescriptor> getOwnPropertyDescriptors(@Nonnull JsObject obj)
@Nonnull public static JsArray<java.lang.String> getOwnPropertyNames(@Nonnull JsObject obj)
@Nonnull public static JsArray<Symbol> getOwnPropertySymbols(@Nonnull JsObject obj)
@Nullable public static JsObject getPrototypeOf(@Nonnull JsObject obj)
public static boolean is(@Nonnull
JsObject value1,
@Nonnull
JsObject value2)
public static boolean isExtensible(@Nonnull
JsObject obj)
public static boolean isFrozen(@Nonnull
JsObject obj)
public static boolean isSealed(@Nonnull
JsObject obj)
@Nonnull public static JsArray<java.lang.String> keys(@Nonnull JsObject obj)
public static void preventExtensions(@Nonnull
JsObject obj)
public static void seal(@Nonnull
JsObject obj)
public static void setPrototypeOf(@Nonnull
JsObject obj,
@Nonnull
JsObject prototype)
@Nonnull public static JsArray<jsinterop.base.Any> values(@Nonnull JsObject obj)