| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ru/docs/Web/JavaScript/Reference/Global_Objects/WeakMap/delete | [Back] [Original] |
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
This feature is well established and works across many devices and browser versions. Its been available across browsers since 2015 ..
delete() WeakMap.
wm.delete(key);
. , WeakMap.
true WeakMap .
var wm = new WeakMap();
wm.set(window, "foo");
wm.delete(window); // true. .
wm.has(window); // false. window WeakMap.
| Specification |
|---|
| ECMAScript 2027 LanguageSpecification # sec-weakmap.prototype.delete |
TypeError when the key parameter was not an object. This has been fixed in version 38 and later to return false as per latest ES6 standard (Firefox bug 1127827).This page was last modified on 12 2024 . by MDN contributors.
WeakMapObject/FunctionObject.prototype.__defineGetter__()Object.prototype.__defineSetter__()Object.prototype.__lookupGetter__()Object.prototype.__lookupSetter__()Object.prototype.hasOwnProperty()Object.prototype.isPrototypeOf()Object.prototype.propertyIsEnumerable()Object.prototype.toLocaleString()Object.prototype.toString()Object.prototype.valueOf()Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |