UNPKG
@thinql/parse
Version:
latest (0.2.0)
0.2.0
Parse ThinQL queries to ASTs
github.com/mmiller42/thinql
mmiller42/thinql
@thinql/parse
/
src
/
lib
/
utils
/
MemoizedWeakMap.js
12 lines
(8 loc)
•
210 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
memoizeOne from
'memoize-one'
class
MemoizedWeakMap
extends
WeakMap
{
constructor
(iterable) {
super
(iterable)
this
.
get
= memoizeOne(
this
.
get
.bind(
this
)) } } export default MemoizedWeakMap