JS: Set (class)

By Xah Lee. Date: . Last updated: .

(new in JS: ECMAScript 2015)

What is the Keyword “Set”

Set is the value of the property key "Set" of the Global Object .

console.log(globalThis["Set"] === Set);

Type

Type of Set is a function.

typeof Set === "function"

Parent

Parent of Set is Function.prototype.

Reflect.getPrototypeOf ( Set ) === Function.prototype

Purpose

Purpose of Set is:

Set Constructor

Properties

JavaScript. Set Object