iwantcoding.com
🔥 Daily 👥 Rooms 🏆 Top Log in Sign up

JS Objects Reference

JavaScript's built-in objects, grouped by category. Each one has its own deep page on MDN — this is the lookup index.

Primitives & wrappers

TypeNotable members
Stringlength, slice, split, replace, includes, startsWith, padStart, match
NumbertoFixed, toString, Number.isFinite, Number.isNaN, Number.MAX_SAFE_INTEGER
BigInttoString(radix), integer arithmetic without precision loss
BooleanBoolean(x), !!x
SymbolSymbol("desc"), Symbol.iterator, well-known symbols

Collections

TypeNotable members
Arraymap, filter, reduce, find, slice, splice, sort, flat, toSorted, at
Objectkeys, values, entries, assign, freeze, create, hasOwn
Mapget, set, has, delete, size
Setadd, has, delete, size, union, intersection
WeakMap / WeakSetKey/values without preventing garbage collection
Typed arraysUint8Array, Int32Array, Float64Array, …

Functions & classes

TypeNotable members
Functioncall, apply, bind, length, name
Promisethen, catch, finally, Promise.all, any, race, allSettled
Datenow, getTime, toISOString, getters/setters
RegExptest, exec, flags, named captures
Error + subclassesTypeError, RangeError, SyntaxError, ReferenceError, URIError, AggregateError

Math / JSON / Intl / global

ObjectWhat it does
MathConstants (PI), abs, round, min, max, random, trig, log
JSONparse, stringify
IntlNumberFormat, DateTimeFormat, Collator, ListFormat, PluralRules
globalThisUniversal global reference
ReflectFunctional reflection — Reflect.get, set, has, apply, construct
ProxyIntercept operations on an object
Tip: Open the browser DevTools console and type Array.prototype. — autocomplete is a free reference. Same for Object., Math., String.prototype..

Example

Example
<!DOCTYPE html>
<html>
<body>

<p id="out"></p>

<script>
document.getElementById("out").textContent = "Hello from JS Objects Reference!";
</script>

</body>
</html>
Try it Yourself »

Exercise

The non-mutating sort method added in ES2023 is…

const next = arr. ();

Test yourself

Q1. `Array.prototype.toSorted()` was added in…
Q2. `Reflect` provides…
Q3. Internationalization APIs live on…

Discussion

Loading…