1.0.0 • Published 10 years ago

stray-dict v1.0.0

Weekly downloads
1
License
-
Repository
-
Last release
10 years ago

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)