UNPKG

jsmodern

Version:

An extension to existing JavaScript, influenced by other great languages such as Rust, Dart, Java, Golang, etc.

13 lines 341 B
export const of = { isStatic: true, label: 'of', fn: function weakMapOf(...elements) { try { return new WeakMap(elements); } catch (_) { throw new TypeError(`A WeakMap entry must contain [key, value] where key must be an object`); } }, }; //# sourceMappingURL=of.js.map