Fang Jin
Jan 12, 2022

--

Btw, the reason I used the array as key, is that i can print the `array.toString()` and I thought this is the behind-the-scene convertion. Since otherwise, i don't think Javascript support hashkey to be an object, unless I uses a weakmap. Anyway would like to see your solution ;)

--

--

Fang Jin
Fang Jin

Written by Fang Jin

Front-end Engineer, book author of “Designing React Hooks the Right Way” and "Think in Recursion"

Responses (1)