- Notifications
You must be signed in to change notification settings - Fork0
allex/composite-key-weakmap
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A map for weakly holding nested references.
CompositeKeyWeakMap.d.ts
exportdeclareclassCompositeKeyWeakMap<T>{private_weakMap;set(keys:any[],value:T):void;get(keys:any[]):T;has(keys:any[]):boolean;delete(keys:any[]):void;}
import{CompositeKeyWeakMap}from @allex/composite-key-weakmapinterfaceILoaderEntry{name:string;}constmap=newCompositeKeyWeakMap<ILoaderEntry>();constobj={}constbar={}map.set([obj,bar],'foo')map.get([obj,bar])// -> foo
MIT Copyright (c)Allex Wang
About
A map for weakly holding nested references
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.