stray-dict

1.0.0 • Public • Published

stray-dict

loose dict functions works with objects with tilde-prefixed keys

Installation

npm install stray-dictk

API

all keys are strings

set(obj, key, value)

get(obj, key)

throws if key not present

get(obj, key, default)

has(obj, key) → Boolean

keys(obj) → [String]

reduce(obj, function(acc, key, value, obj), initialValue, thisObj)

/stray-dict/

    Package Sidebar

    Install

    npm i stray-dict

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • nathan7