Plato on Github
Report Home
lib/memory.js
Maintainability
93.37
Lines of code
24
Difficulty
9.82
Estimated Errors
0.06
Function weight
By Complexity
By SLOC
"use strict" class Memory { constructor() { this.references = {}; } register(player, reference) { this.references[player] = reference; } retrieve(player) { return this.references[player]; } exists(player) { return player in this.references; } } export { Memory as default };