PHP WebShell

Текущая директория: /usr/lib/node_modules/bitgo/node_modules/@celo/base/lib

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

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isContact = exports.getContactPhoneNumber = void 0;
var getContactPhoneNumber = function (contact) {
    if (!contact) {
        throw new Error('Invalid contact');
    }
    if (!contact.phoneNumbers || !contact.phoneNumbers.length) {
        return null;
    }
    // TODO(Rossy) find the right phone number based on the address
    return contact.phoneNumbers[0].number;
};
exports.getContactPhoneNumber = getContactPhoneNumber;
function isContact(contactOrNumber) {
    if (typeof contactOrNumber === 'object') {
        return 'recordID' in contactOrNumber;
    }
    return false;
}
exports.isContact = isContact;
//# sourceMappingURL=contacts.js.map

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


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