WeakRef와 FinalizationRegistry 이해하기

일시적으로 데이터를 담아 둘 때, Map을 활용합니다. 데이터베이스에서 아이디를 통해 사용자 데이터를 가져오는 로직이 있다고 가정해봅시다. class UserFinder { findById(id: string) { return await thi...

weakref javascript