ember-cli-ajh
Version:
Command line tool for developing ambitious ember.js apps
15 lines (12 loc) • 394 B
JavaScript
;
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;
};