Lostsory

Results 2 comments of Lostsory

```javascript var entry = { 'a.b.c.dd': 'abcdd', 'a.d.xx': 'adxx', 'a.e': 'ae' } const tranfer = (o, r = {}) => { for (let i in o) { var a =...

```js class LRUCache { constructor(max) { this.max = max this.keys = [] this.cache = {} } get = (k) => { if (this.cache[k]) { this.remove(this.keys, k) this.keys.push(k) return this.cache[k] }...