Hash object to hold key-value pairs
npm install @the-/hash@the-/hash
==========
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[bd_repo_url]: https://github.com/the-labo/the
[bd_npm_url]: http://www.npmjs.org/package/@the-/hash
[bd_npm_shield_url]: http://img.shields.io/npm/v/@the-/hash.svg?style=flat
Hash object to hold key-value pairs
Installation
-----
``bash`
$ npm install @the-/hash --save
Usage
---------
`javascript
'use strict'
const { TheHash } = require('@the-/hash')
async function tryExample() {
const hash = new TheHash()
hash.a = 1
const a = hash.get('a')
console.log(a)
const p = hash.toProxy({ unknownCheck: true })
console.log(p.x) // Emits unknown warning
}
tryExample().catch((err) => console.error(err))
``
- module:@the-/hash
- .create(args)
- .default()
- .proxy(src,options)
- .TheHash
- TheHash
- #get(key)
- #has(key)
- #set(key,value)
- #toProxy(options)
See API Guide for more detail
License
-------
This software is released under the MIT License.
Links
------
+ [THE Labo][the_labo_url]
[the_labo_url]: https://github.com/the-labo