I'd like to proj.cache.generate() instead of proj.generateCache() basically
What does generate do?
const hello = {}; class Project { #objMap = new Map<object, string>(); cache = { set: (key: object, value: string) => { this.#objMap.set(key, value) }, get: (key: object) => this.#objMap.get(key) } } const p = new Project(); p.cache.set(hello, "hello"); console.log(p.cache.get(hello))
what is this # ?
Private property
Обсуждают сегодня