https://github.com/js-sdk/js-sdk-dict
Simple dict type.
https://github.com/js-sdk/js-sdk-dict
dictionary javascript library
Last synced: about 1 year ago
JSON representation
Simple dict type.
- Host: GitHub
- URL: https://github.com/js-sdk/js-sdk-dict
- Owner: js-sdk
- License: unlicense
- Created: 2017-09-14T23:31:30.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-14T23:31:41.000Z (almost 9 years ago)
- Last Synced: 2025-01-25T22:56:21.457Z (over 1 year ago)
- Topics: dictionary, javascript, library
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- Contributing: contributing.md
- License: license.md
Awesome Lists containing this project
README
# js-sdk-dict
Simple dictionary utilities.
## library
```ts
$ Dict() -> Dict
// Dictionary type. This represents an object with unordered key.
$ Dict::create() -> Dict
// Smart contructor.
$ Dict::set(k : Any, v : Any) -> Dict
// add a new item to the dict. 'k' key must be an object that
// can be tested with '=='.
$ Dict::get(k : Any) -> Dict
// get an item from the dict. 'k' key must be an object that
// can be tested with '=='.
```
## license
See `license.md` or visit [Unlicense](dict://unlicense.org).