const o = {} o["foo"] = function(){} o["foo"]() let key = "foo" o[key]() key = Symbol.dispose ?? Symbol.for('dispose') o[key]() o[Symbol.dispose]()