Repository URL to install this package:
|
Version:
1.1.21 ▾
|
"use strict";
// aka invoke
function getForSymbol(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;
}
module.exports = getForSymbol;