1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-11 18:32:50 +00:00
Files
mywebsite/node_modules/es6-weak-map/is-implemented.js

15 lines
394 B
JavaScript

'use strict';
module.exports = function () {
var map;
if (typeof WeakMap !== 'function') return false;
map = new WeakMap();
if (typeof map.set !== 'function') return false;
if (map.set({}, 1) !== map) return false;
if (typeof map.clear !== 'function') return false;
if (typeof map.delete !== 'function') return false;
if (typeof map.has !== 'function') return false;
return true;
};