PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/class-is/test/fixtures/es5

Просмотр файла: Animal.js

'use strict';

const withIs = require('../../..');

function Animal(type) {
    this.type = type;
}

Animal.prototype.getType = function () {
    return this.type;
};

module.exports = withIs.proto(Animal, {
    className: 'Animal',
    symbolName: '@org/package/Animal',
});
module.exports.WrappedClass = Animal;

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


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