@kingjs/dictionary

    1.0.6 • Public • Published

    @kingjs/dictionary

    A dictionary.

    Usage

    Create a object for which the in operator returns false for all values including 'toString' like this:

    'toString' in new Dictionary();

    result:

    false

    API

    declare class Dictionary { }

    Remarks

    Javascript objects are often used as dictionaries of strings to values. This is bad practice! An empty Javascript object is not an empty dictionary. It contains a 'toString' key visible to the in operator.

    Install

    With npm installed, run

    $ npm install @kingjs/dictionary
    

    License

    MIT

    Analytics

    Keywords

    none

    Install

    npm i @kingjs/dictionary

    DownloadsWeekly Downloads

    20

    Version

    1.0.6

    License

    MIT

    Unpacked Size

    2.35 kB

    Total Files

    4

    Last publish

    Collaborators

    • kingces95