PHP WebShell

Текущая директория: /opt/BitGoJS/modules/express/node_modules/sinon/lib/sinon/util/core

Просмотр файла: is-es-module.js

"use strict";

/**
 * Verify if an object is a ECMAScript Module
 *
 * As the exports from a module is immutable we cannot alter the exports
 * using spies or stubs. Let the consumer know this to avoid bug reports
 * on weird error messages.
 *
 * @param {object} object The object to examine
 *
 * @returns {boolean} true when the object is a module
 */
module.exports = function (object) {
    return (
        object &&
        typeof Symbol !== "undefined" &&
        object[Symbol.toStringTag] === "Module" &&
        Object.isSealed(object)
    );
};

Выполнить команду


Для локальной разработки. Не используйте в интернете!