'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; };