// aka invoke
function getAtSymbol<Value extends {} = any>(
symbolToGet: symbol,
value: 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
}
export { getAtSymbol }
export default getAtSymbol