@the-/hash

15.4.10 • Public • Published

@the-/hash

npm Version

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

See API Guide for more detail

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i @the-/hash

Weekly Downloads

2

Version

15.4.10

License

MIT

Unpacked Size

41.1 kB

Total Files

18

Last publish

Collaborators

  • okunishinishi