15.4.10 • Published 5 years ago
@the-/hash v15.4.10
@the-/hash
Hash object to hold key-value pairs
Installation
$ npm install @the-/hash --save
Usage
'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))
API Guide
- module:@the-/hash
- TheHash
See API Guide for more detail
License
This software is released under the MIT License.