tag-reg

0.0.1 • Public • Published

Пример использования

    var dataStore = new TagRegistry();
    
    dataStore.set(["K1", "K2"], "AAA");
    console.log(dataStore.get(["K1", "K2"])); // AAA
    console.log(dataStore.get(["K2", "K1"])); // AAA
 
    dataStore.set(["K1", "K3", "K2"], "BBB");
    console.log(dataStore.get(["K1", "K2", "K3"])); // BBB
    console.log(dataStore.get(["K1", "K3", "K2"])); // BBB
    console.log(dataStore.get(["K2", "K1", "K3"])); // BBB
    console.log(dataStore.get(["K2", "K3", "K1"])); // BBB
    console.log(dataStore.get(["K3", "K1", "K2"])); // BBB
    console.log(dataStore.get(["K3", "K2", "K1"])); // BBB

Вывод:

$ node example1.js 
AAA
AAA
BBB
BBB
BBB
BBB
BBB
BBB

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i tag-reg

      Weekly Downloads

      2

      Version

      0.0.1

      License

      MIT

      Last publish

      Collaborators

      • gusenov
      • gussenov