Skip to content

Latest commit

 

History

History
135 lines (103 loc) · 4.31 KB

File metadata and controls

135 lines (103 loc) · 4.31 KB

Global objects

The term "global objects" (or standard built-in objects) here is not to be confused with the global object. Here, global objects refer to objects in the global scope. The global object itself can be accessed using the this operator in the global scope (but only if ECMAScript 5 strict mode is not used; in that case it returns undefined). In fact, the global scope consists of the properties of the global object, including inherited properties, if any.

These are called global objects and not standard library types, because in JavaScript they are not types. See prototype-based inheritance.

Standard objects by category

Value properties

These global properties return a simple value; they have no properties or methods.

Function properties

These global functions — functions which are called globally rather than on an object — directly return their results to the caller.

  • eval()
  • isFinite()
  • isNaN()
  • parseFloat()
  • parseInt()
  • decodeURI()
  • decodeURIComponent()
  • encodeURI()
  • encodeURIComponent()

Fundamental objects

These are the fundamental, basic objects upon which all other objects are based. This includes objects that represent general objects, functions, and errors.

Numbers and dates

These are the base objects representing numbers, dates, and mathematical calculations.

Text processing

These objects represent strings and support manipulating them.

Indexed collections

These objects represent collections of data which are ordered by an index value. This includes (typed) arrays and array-like constructs.

  • Array
  • Typed arrays:
    • Int8Array
    • Uint8Array
    • Uint8ClampedArray
    • Int16Array
    • Uint16Array
    • Int32Array
    • Uint32Array
    • Float32Array
    • Float64Array
    • BigInt64Array
    • BigUint64Array

Keyed collections

These objects represent collections which use keys; the iterable ones such as Map and Set contain elements which are iterable in the order of insertion.

Structured data

These objects represent and interact with structured data buffers and data coded using JavaScript Object Notation (JSON).

  • ArrayBuffer
  • DataView
  • JSON

Control abstraction objects

  • Promise
  • Generator
  • GeneratorFunction
  • AsyncFunction

Reflection

  • Reflect
  • Proxy