oglimmer/linky

View on GitHub
src/components/TreeState.js

Summary

Maintainability
A
0 mins
Test Coverage

let data = {};

export default {

  wasCalled: key => data[key],

  setCalled: (key) => {
    data[key] = true;
  },

  clear: () => {
    data = {};
  },

};