(key)
| 1266 | const head= makeSelfCell(undefined); |
| 1267 | |
| 1268 | const touchCell= (key)=>{ |
| 1269 | const cell= keyToCell.get(key); |
| 1270 | if( cell=== undefined|| cell.data=== undefined) { |
| 1271 | // Either the key was GCed, or the cell was condemned. |
| 1272 | return undefined; |
| 1273 | } |
| 1274 | // Becomes most recently used |
| 1275 | spliceOut(cell); |
| 1276 | spliceAfter(head, cell); |
| 1277 | return cell; |
| 1278 | }; |
| 1279 | |
| 1280 | /** |
| 1281 | * @param {K} key |