Files
2023-07-12 16:31:19 +01:00

9 lines
275 B
JavaScript
Executable File

// Exports true if environment provides native `WeakMap` implementation, whatever that is.
'use strict';
module.exports = (function () {
if (typeof WeakMap !== 'function') return false;
return (Object.prototype.toString.call(new WeakMap()) === '[object WeakMap]');
}());