Super-type of all JavaScript values.
Arrays are list-like objects whose prototype has methods to perform traversal and mutation operations.
Primitive JavaScript boolean.
Creates a JavaScript Date instance that represents a single moment in time.
Dictionary "view" of a JavaScript value.
Dynamically typed JavaScript value.
An instance representing an error that occurs regarding the global function eval()
The Function constructor creates a new Function object.
Marker trait for top-level objects representing the JS global scope.
Primitive JavaScript number.
Base class of all JavaScript objects.
An instance representing an error that occurs when a numeric variable or parameter is outside of its valid range.
Represents an error when a non-existent variable is referenced.
The RegExp constructor creates a regular expression object for matching text with a pattern.
Primitive JavaScript string.
Represents an error when trying to interpret syntactically invalid code.
A JavaScript function where this
is considered as a first parameter.
Represents an error when a value is not of the expected type.
Represents an error when a malformed URI is encountered.
Primitive JavaScript undefined value.
Provides implicit conversions from Scala values to JavaScript values.
Factory for js.Array objects.
The top-level Boolean
JavaScript object.
Factory for js.Date objects.
Factory for Dictionary instances.
Factory for dynamically typed JavaScript values.
The constant Positive Infinity.
The JSON object contains methods for converting values to JavaScript Object Notation (JSON) and for converting JSON to values.
Math is a built-in object that has properties and methods for mathematical constants and functions.
The constant Not-a-Number.
The top-level Number
JavaScript object
The top-level Object
JavaScript object.
The top-level String
JavaScript object.
Invokes any available debugging functionality.
Invokes any available debugging functionality. If no debugging functionality is available, this statement has no effect.
MDN
Browser support: * Has no effect in Rhino nor, apparently, in Firefox * In Chrome, it has no effect unless the developer tools are opened beforehand.
Decodes a Uniform Resource Identifier (URI).
Decodes a Uniform Resource Identifier (URI).
Decodes a Uniform Resource Identifier (URI) component.
Decodes a Uniform Resource Identifier (URI) component.
Encodes a Uniform Resource Identifier (URI).
Encodes a Uniform Resource Identifier (URI).
Encodes a Uniform Resource Identifier (URI) component.
Encodes a Uniform Resource Identifier (URI) component.
Evaluates JavaScript code and returns the result.
Every object descended from Object inherits the hasOwnProperty method.
Every object descended from Object inherits the hasOwnProperty method. This method can be used to determine whether an object has the specified property as a direct property of that object; unlike the in operator, this method does not check down the object's prototype chain.
MDN
Tests whether the given value is a finite number.
Tests whether the given value is Not-a-Number.
The isPrototypeOf mehtod allows you to check whether or not an object exists within another object's prototype chain.
The isPrototypeOf mehtod allows you to check whether or not an object exists within another object's prototype chain.
MDN
Parses a string as a floating point number.
Parses a string as an integer with auto-detected radix.
Parses a string as an integer with a given radix.
Every object has a propertyIsEnumerable method.
Every object has a propertyIsEnumerable method. This method can determine whether the specified property in an object can be enumerated by a for...in loop, with the exception of properties inherited through the prototype chain. If the object does not have the specified property, this method returns false.
MDN
Returns the type of x
as identified by typeof x
in JavaScript.
Contains primitive types for interoperability with JavaScript libraries. This package is only relevant to the Scala.js compiler, and should not be referenced by any project compiled to the JVM.
All the values and methods in this package object are representatives of standard variables and functions available in the top-level scope, as standardized in ECMAScript 5.1.
Guide
General documentation on Scala.js can is available at http://lampwww.epfl.ch/~doeraene/scala-js/doc/.
Overview
The trait js.Any is the super type of all JavaScript values. It has subtraits js.Number, js.Boolean, js.String and js.Undefined which represent values of primitive JavaScript types. It also has a subclass js.Object, which is the base class of all JavaScript objects, and represents the predefined
Object
class of JavaScript.All class, trait and object definitions that inherit, directly or indirectly, from js.Any do not have actual implementations in Scala. They are only the manifestation of static types representing libraries written directly in JavaScript. It is not possible to implement yourself a subclass of js.Any: all the method definitions will be ignored when compiling to JavaScript.
The trait js.Dynamic is a special subtrait of js.Any. It can represent any JavaScript value in a dynamically typed way. It is possible to call any method and read and write any field of a value of type js.Dynamic.
The trait js.Dictionary provides read and write access to any field of any JavaScript value with the array access syntax of Scala, mapping to the array access syntax of JavaScript.