Guide

Overview

The trait js.Any is the root of the hierarchy of JavaScript types.
This package defines important subtypes of js.Any that are defined
in the standard library of ECMAScript 5.1 (or ES 6, with a label in the
documentation), such as js.Object, js.Array and
js.RegExp.

Implicit conversions to and from standard Scala types to their equivalent
in JavaScript are provided. For example, from Scala functions to JavaScript
functions and back.

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.

There are no explicit definitions for JavaScript primitive types, as one
could expect, because the corresponding Scala types stand in their stead: