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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i tag-reg

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • gusenov
  • gussenov