Packages

object Object extends Object

The top-level Object JavaScript object.

Annotations
@native() @JSGlobal()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Object
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: scala.Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: scala.Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(value: scala.Any): Object
  5. def apply(): Object
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def assign(t: Object, s: Object*): Object

    ECMAScript 6 The Object.assign() method is used to copy the values of all enumerable own properties from one or more source objects to a target object.

    ECMAScript 6 The Object.assign() method is used to copy the values of all enumerable own properties from one or more source objects to a target object. It will return the target object.

    Properties in the target object will be overwritten by properties in the sources if they have the same key. Later sources' properties will similarly overwrite earlier ones.

    The Object.assign() method only copies enumerable and own properties from a source object to a target object. It uses Get on the source and Set on the target, so it will invoke getters and setters. Therefore it assigns properties versus just copying or defining new properties. This may make it unsuitable for merging new properties into a prototype if the merge sources contain getters. For copying property definitions, including their enumerability, into prototypes Object.getOwnPropertyDescriptor() and Object.defineProperty() should be used instead.

    Both String and Symbol properties are copied.

    In case of an error, for example if a property is non-writable, a TypeError will be raised, and the target object can be changed if any properties are added before error is raised.

    Note that Object.assign() does not throw on null or undefined source values.

    MDN

  8. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  9. def create(o: Object): Object
  10. def create(o: Object, properties: Any): Object

    The Object.create() method creates a new object with the specified prototype object and properties.

    The Object.create() method creates a new object with the specified prototype object and properties.

    MDN

  11. def defineProperties(o: Object, properties: Any): o.type

    The Object.defineProperties() method defines new or modifies existing properties directly on an object, returning the object.

    The Object.defineProperties() method defines new or modifies existing properties directly on an object, returning the object.

    MDN

  12. def defineProperty(o: Object, p: String, attributes: PropertyDescriptor): o.type

    The Object.defineProperty() method defines a new property directly on an object, or modifies an existing property on an object, and returns the object.

    The Object.defineProperty() method defines a new property directly on an object, or modifies an existing property on an object, and returns the object.

    This method allows precise addition to or modification of a property on an object. Normal property addition through assignment creates properties which show up during property enumeration (for...in loop or Object.keys method), whose values may be changed, and which may be deleted. This method allows these extra details to be changed from their defaults.

    Property descriptors present in objects come in two main flavors: data descriptors and accessor descriptors. A data descriptor is a property that has a value, which may or may not be writable. An accessor descriptor is a property described by a getter-setter pair of functions. A descriptor must be one of these two flavors; it cannot be both.

    MDN

  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def equals(arg0: scala.Any): Boolean
    Definition Classes
    AnyRef → Any
  15. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. def freeze(o: Object): o.type

    The Object.freeze() method freezes an object: that is, prevents new properties from being added to it; prevents existing properties from being removed; and prevents existing properties, or their enumerability, configurability, or writability, from being changed.

    The Object.freeze() method freezes an object: that is, prevents new properties from being added to it; prevents existing properties from being removed; and prevents existing properties, or their enumerability, configurability, or writability, from being changed. In essence the object is made effectively immutable. The method returns the object being frozen.

    MDN

  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getOwnPropertyDescriptor(o: Object, p: String): PropertyDescriptor

    The Object.getOwnPropertyDescriptor() method returns a property descriptor for an own property (that is, one directly present on an object, not present by dint of being along an object's prototype chain) of a given object.

    The Object.getOwnPropertyDescriptor() method returns a property descriptor for an own property (that is, one directly present on an object, not present by dint of being along an object's prototype chain) of a given object.

    MDN

  19. def getOwnPropertyNames(o: Object): Array[String]

    Object.getOwnPropertyNames returns an array whose elements are strings corresponding to the enumerable and non-enumerable properties found directly upon obj.

    Object.getOwnPropertyNames returns an array whose elements are strings corresponding to the enumerable and non-enumerable properties found directly upon obj. The ordering of the enumerable properties in the array is consistent with the ordering exposed by a for...in loop (or by Object.keys) over the properties of the object. The ordering of the non-enumerable properties in the array, and among the enumerable properties, is not defined.

    MDN

  20. def getPrototypeOf(o: Object): Object

    The Object.getPrototypeOf() method returns the prototype (i.e.

    The Object.getPrototypeOf() method returns the prototype (i.e. the internal Prototype) of the specified object.

    MDN

  21. def hasOwnProperty(v: String): Boolean

    Tests whether this object has the specified property as a direct property.

    Tests whether this object has the specified property as a direct property.

    Unlike js.Object.hasProperty, this method does not check down the object's prototype chain.

    MDN

    Definition Classes
    Object
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  23. def isExtensible(o: Object): Boolean

    Determines if extending of an object is allowed

    Determines if extending of an object is allowed

    Objects are extensible by default: they can have new properties added to them, and (in engines that support proto their proto property) can be modified. An object can be marked as non-extensible using Object.preventExtensions, Object.seal, or Object.freeze

    MDN

  24. def isFrozen(o: Object): Boolean

    The Object.isFrozen() determines if an object is frozen.

    The Object.isFrozen() determines if an object is frozen.

    An object is frozen if and only if it is not extensible, all its properties are non-configurable, and all its data properties (that is, properties which are not accessor properties with getter or setter components) are non-writable.

    MDN

  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def isPrototypeOf(v: Object): Boolean

    Tests whether this object is in the prototype chain of another object.

    Tests whether this object is in the prototype chain of another object.

    Definition Classes
    Object
  27. def isSealed(o: Object): Boolean

    Returns true if the object is sealed, otherwise false.

    Returns true if the object is sealed, otherwise false. An object is sealed if it is not extensible and if all its properties are non-configurable and therefore not removable (but not necessarily non-writable).

    MDN

  28. def keys(o: Object): Array[String]

    The Object.keys() method returns an array of a given object's own enumerable properties, in the same order as that provided by a for...in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).

    The Object.keys() method returns an array of a given object's own enumerable properties, in the same order as that provided by a for...in loop (the difference being that a for-in loop enumerates properties in the prototype chain as well).

    MDN

  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. def preventExtensions(o: Object): o.type

    The Object.preventExtensions() method prevents new properties from ever being added to an object (i.e.

    The Object.preventExtensions() method prevents new properties from ever being added to an object (i.e. prevents future extensions to the object).

    An object is extensible if new properties can be added to it. preventExtensions marks an object as no longer extensible, so that it will never have properties beyond the ones it had at the time it was marked as non-extensible. Note that the properties of a non-extensible object, in general, may still be deleted. Attempting to add new properties to a non-extensible object will fail, either silently or by throwing a TypeError (most commonly, but not exclusively, when in strict mode).

    Object.preventExtensions only prevents addition of own properties. Properties can still be added to the object prototype. However, calling Object.preventExtensions on an object will also prevent extensions on its proto property.

    MDN

  33. def propertyIsEnumerable(v: String): Boolean

    Tests whether the specified property in an object can be enumerated by a call to js.Object.properties, with the exception of properties inherited through the prototype chain.

    Tests whether the specified property in an object can be enumerated by a call to js.Object.properties, with the exception of properties inherited through the prototype chain.

    If the object does not have the specified property, this method returns false.

    MDN

    Definition Classes
    Object
  34. def seal(o: Object): o.type

    The Object.seal() method seals an object, preventing new properties from being added to it and marking all existing properties as non-configurable.

    The Object.seal() method seals an object, preventing new properties from being added to it and marking all existing properties as non-configurable. Values of present properties can still be changed as long as they are writable.

    MDN

  35. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  36. def toLocaleString(): String
    Definition Classes
    Object
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. def valueOf(): scala.Any
    Definition Classes
    Object
  39. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from scala.Any

Ungrouped