Hash object to hold key-value pairs


Keywords
the
License
MIT
Install
npm install the-hash@1.1.1

Documentation

the-hash

Build Status npm Version JS Standard

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
  ok(hash.has('a'))
  const a = hash.get('a')
  console.log(a)

  const p = hash.toProxy({ unknownCheck: true })
  p.x // Emits unknown warning
}

tryExample().catch((err) => console.error(err))

API Guide

License

This software is released under the MIT License.

Links