Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

WeakSet.prototype

WeakSet.prototype 속성(property)은 WeakSet 생성자에 대한 프로토타입을 나타냅니다.

Property attributes of WeakSet.prototype
Writable no
Enumerable no
Configurable no

설명

WeakSet 인스턴스는 WeakSet.prototype에서 상속합니다. 모든 WeakSet 인스턴스에 속성 또는 메서드를 추가하기 위해 생성자의 프로토타입 객체를 사용할 수 있습니다.

WeakSet.prototype은 그 자체로 그냥 평범한 객체입니다:

Object.prototype.toString.call(WeakSet.prototype); // "[object Object]"

속성

WeakSet.prototype.constructor
인스턴스의 프로토타입을 생성한 함수를 반환합니다. 이는 기본으로 WeakSet 함수입니다.

메서드

WeakSet.prototype.add(value)
WeakSet 객체에 주어진 값을 갖는 새로운 객체를 추가합니다.
WeakSet.prototype.delete(value)
value와 관련된 요소를 제거합니다. WeakSet.prototype.has(value)는 그 뒤에 false를 반환합니다.
WeakSet.prototype.has(value)
WeakSet 객체 내 주어진 값을 갖는 요소가 존재하는 지 여부를 주장하는(asserting, 나타내는) boolean을 반환합니다.
WeakSet.prototype.clear()
WeakSet 객체에서 모든 요소를 제거합니다.

스펙

스펙 상태 설명
ECMAScript 2015 (6th Edition, ECMA-262)
The definition of 'WeakSet.prototype' in that specification.
Standard 초기 정의.
ECMAScript 2017 Draft (ECMA-262)
The definition of 'WeakSet.prototype' in that specification.
Draft  

브라우저 호환성

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support 36 34 (34) No support 23 No support
Ordinary object ? 40 (40) ? ? ?
Feature Chrome for Android Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support No support No support 34.0 (34) No support No support No support
Ordinary object ? ? 40.0 (40) ? ? ?

참조

문서 태그 및 공헌자

 이 페이지의 공헌자: Netaras
 최종 변경: Netaras,