Repository URL to install this package:
Version:
6.0.0-beta.8 ▾
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// aka invoke
function getAtSymbol(symbolToGet, value) {
let atSymbol = value[symbolToGet];
// @NOTE not sure if we really need this
if (typeof atSymbol === 'function') {
atSymbol = atSymbol();
}
if (typeof atSymbol === 'string') {
return atSymbol;
}
return undefined;
}
exports.getAtSymbol = getAtSymbol;
exports.default = getAtSymbol;
//# sourceMappingURL=getAtSymbol.js.map