@shvmeless/dictionary
v0.3.0
Published
This package provides tools that allow you to manipulate dictionaries in a similar way to how you manipulate arrays.
Readme
Dictionary JS
A dictionary is defined as an object containing an indefinite number of properties (entries), all of which share values of the same data type.
This package provides tools that allow you to manipulate dictionaries in a similar way to how you manipulate arrays.
Installation
To install this package, run the following command in your terminal:
npm install @shvmeless/dictionaryDictionary Class
The Dictionary class is designed to work mainly with a single dictionary as a reference, where all modifications made are reflected in real time in the dictionary itself.
import { Dictionary } from '@shvmeless/dictionary';Read more about this class here.
Dictionary Functions
The dictionary module provides a series of functions to manipulate dictionaries more independently and indirectly. Each time dictionary(object) is called, a shallow clone is created, leaving the original object unmodified.
import { dictionary } from '@shvmeless/dictionary';