JS: Set.prototype

By Xah Lee. Date: . Last updated: .

New in JS2015.

What is Set.prototype

Set.prototype is the value of the property key "prototype" of the function Set. 〔see Set Object

Set.hasOwnProperty("prototype")

Type

Type of Set.prototype is Object .

typeof Set.prototype === "object"

Parent

Parent of Set.prototype is Object.prototype .

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

Purpose

Purpose of Set.prototype is to provide methods and properties useful for all set instances.

Set.prototype is the parent of all set instances.

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

〔see the Set Object Tutorial

Properties

JavaScript, Set Object