trait ObjectConstructor extends scala.scalajs.js.Object with StObject with Instantiable0[scala.scalajs.js.Object] with Instantiable1[Any, scala.scalajs.js.Object]
- Annotations
- @JSType() @native()
- Source
- ObjectConstructor.scala
- Alphabetic
- By Inheritance
- ObjectConstructor
- Instantiable1
- Instantiable0
- StObject
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): scala.Boolean
- Definition Classes
- AnyRef → Any
- def apply(value: Any): Any
- def apply(): Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def assign[T, U, V, W](target: T, source1: U, source2: V, source3: W): T with U with V with W
Copy the values of all of the enumerable own properties from one or more source objects to a target object.
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
- target
The target object to copy to.
- source1
The first source object from which to copy properties.
- source2
The second source object from which to copy properties.
- source3
The third source object from which to copy properties.
- def assign[T, U, V](target: T, source1: U, source2: V): T with U with V
Copy the values of all of the enumerable own properties from one or more source objects to a target object.
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
- target
The target object to copy to.
- source1
The first source object from which to copy properties.
- source2
The second source object from which to copy properties.
- def assign[T, U](target: T, source: U): T with U
Copy the values of all of the enumerable own properties from one or more source objects to a target object.
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
- target
The target object to copy to.
- source
The source object from which to copy properties.
- def assign(target: scala.scalajs.js.Object, sources: Any*): Any
Copy the values of all of the enumerable own properties from one or more source objects to a target object.
Copy the values of all of the enumerable own properties from one or more source objects to a target object. Returns the target object.
- target
The target object to copy to.
- sources
One or more source objects from which to copy properties
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def create(o: Null, properties: PropertyDescriptorMap with ThisType[Any]): Any
- def create(o: scala.scalajs.js.Object, properties: PropertyDescriptorMap with ThisType[Any]): Any
Creates an object that has the specified prototype, and that optionally contains specified properties.
Creates an object that has the specified prototype, and that optionally contains specified properties.
- o
Object to use as a prototype. May be null
- properties
JavaScript object that contains one or more property descriptors.
- def create(o: scala.scalajs.js.Object): Any
- def create(): Any
Creates an object that has the specified prototype or that has null prototype.
- def defineProperties[T](o: T, properties: PropertyDescriptorMap with ThisType[Any]): T
Adds one or more properties to an object, and/or modifies attributes of existing properties.
Adds one or more properties to an object, and/or modifies attributes of existing properties.
- o
Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
- properties
JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
- def defineProperty[T](o: T, p: PropertyKey, attributes: scala.scalajs.js.PropertyDescriptor with ThisType[Any]): T
Adds a property to an object, or modifies attributes of an existing property.
Adds a property to an object, or modifies attributes of an existing property.
- o
Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
- p
The property name.
- attributes
Descriptor for the property. It can be for a data property or an accessor property.
- def entries[T](o: StringDictionary[T]): scala.scalajs.js.Array[Tuple2[java.lang.String, T]]
Returns an array of key/values of the enumerable properties of an object
Returns an array of key/values of the enumerable properties of an object
- o
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
- def entries[T](o: ArrayLike[T]): scala.scalajs.js.Array[Tuple2[java.lang.String, T]]
- def entries(o: scala.scalajs.js.Object): scala.scalajs.js.Array[Tuple2[java.lang.String, Any]]
Returns an array of key/values of the enumerable properties of an object
Returns an array of key/values of the enumerable properties of an object
- o
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
- final def eq(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef → Any
- def freeze[T](f: T): T
Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
- def freeze[T](a: scala.scalajs.js.Array[T]): scala.scalajs.js.Array[T]
Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
- def freeze_T[T](o: T): T
Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
- o
Object on which to lock the attributes.
- Annotations
- @JSName("freeze")
- def fromEntries(entries: scala.scalajs.js.Iterable[scala.scalajs.js.Array[Any]]): Any
Returns an object created by key-value entries for properties and methods
Returns an object created by key-value entries for properties and methods
- entries
An iterable object that contains key-value entries for properties and methods.
- def fromEntries_T_StringDictionary[T](entries: scala.scalajs.js.Iterable[Tuple2[PropertyKey, T]]): StringDictionary[T]
Returns an object created by key-value entries for properties and methods
Returns an object created by key-value entries for properties and methods
- entries
An iterable object that contains key-value entries for properties and methods.
- Annotations
- @JSName("fromEntries")
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def getOwnPropertyDescriptor(o: Any, p: PropertyKey): UndefOr[scala.scalajs.js.PropertyDescriptor]
Gets the own property descriptor of the specified object.
Gets the own property descriptor of the specified object. An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
- o
Object that contains the property.
- p
Name of the property.
- def getOwnPropertyDescriptors[T](o: T): stdStrings.ObjectConstructor with TopLevel[T] with StringDictionary[scala.scalajs.js.PropertyDescriptor]
Returns an object containing all own property descriptors of an object
Returns an object containing all own property descriptors of an object
- o
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
- def getOwnPropertyNames(o: Any): scala.scalajs.js.Array[java.lang.String]
Returns the names of the own properties of an object.
Returns the names of the own properties of an object. The own properties of an object are those that are defined directly on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
- o
Object that contains the own properties.
- def getOwnPropertySymbols(o: Any): scala.scalajs.js.Array[scala.scalajs.js.Symbol]
Returns an array of all symbol properties found directly on object o.
Returns an array of all symbol properties found directly on object o.
- o
Object to retrieve the symbols from.
- def getPrototypeOf(o: Any): Any
Returns the prototype of an object.
Returns the prototype of an object.
- o
The object that references the prototype.
- def hasOwnProperty(v: scala.Predef.String): scala.Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def is(value1: Any, value2: Any): scala.Boolean
Returns true if the values are the same value, false otherwise.
Returns true if the values are the same value, false otherwise.
- value1
The first value.
- value2
The second value.
- def isExtensible(o: Any): scala.Boolean
Returns a value that indicates whether new properties can be added to an object.
Returns a value that indicates whether new properties can be added to an object.
- o
Object to test.
- def isFrozen(o: Any): scala.Boolean
Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
- o
Object to test.
- final def isInstanceOf[T0]: scala.Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: scala.scalajs.js.Object): scala.Boolean
- Definition Classes
- Object
- def isSealed(o: Any): scala.Boolean
Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
- o
Object to test.
- def keys(o: scala.scalajs.js.Object): scala.scalajs.js.Array[java.lang.String]
Returns the names of the enumerable string properties and methods of an object.
Returns the names of the enumerable string properties and methods of an object.
- o
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
- final def ne(arg0: AnyRef): scala.Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def preventExtensions[T](o: T): T
Prevents the addition of new properties to an object.
Prevents the addition of new properties to an object.
- o
Object to make non-extensible.
- def propertyIsEnumerable(v: scala.Predef.String): scala.Boolean
- Definition Classes
- Object
- def seal[T](o: T): T
Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
- o
Object on which to lock the attributes.
- def setPrototypeOf(o: Any, proto: scala.scalajs.js.Object): Any
- def setPrototypeOf(o: Any): Any
Sets the prototype of a specified object o to object proto or null.
Sets the prototype of a specified object o to object proto or null. Returns the object o.
- o
The object to change its prototype.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): scala.Predef.String
- Definition Classes
- Object
- def toString(): java.lang.String
- Definition Classes
- AnyRef → Any
- def valueOf(): Any
- Definition Classes
- Object
- def values[T](o: StringDictionary[T]): scala.scalajs.js.Array[T]
Returns an array of values of the enumerable properties of an object
Returns an array of values of the enumerable properties of an object
- o
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
- def values[T](o: ArrayLike[T]): scala.scalajs.js.Array[T]
- def values(o: scala.scalajs.js.Object): scala.scalajs.js.Array[Any]
Returns an array of values of the enumerable properties of an object
Returns an array of values of the enumerable properties of an object
- o
Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated