"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/es6-weak-map/is-native-implemented.js" (11 Apr 2017, 286 Bytes) of package /windows/misc/atom-windows.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Javascript source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 // Exports true if environment provides native `WeakMap` implementation,
    2 // whatever that is.
    3 
    4 'use strict';
    5 
    6 module.exports = (function () {
    7     if (typeof WeakMap === 'undefined') return false;
    8     return (Object.prototype.toString.call(WeakMap.prototype) ===
    9             '[object WeakMap]');
   10 }());