npm.io
0.2.0 • Published 9 years ago

blanks

Licence
MIT
Version
0.2.0
Deps
0
Vulns
0
Weekly
0
Stars
1

blanks

Some immutable blanks that come handy as seed vales in functional programs where addition and subtraction operations produce new values instead of mutating in-place.

import blank from "blanks/lib/dictionary"

blank // => {}
blank instanceof Object // => true
blank.constructor // => undefined
blank.__proto__ // => undefined

import blankObject from "blanks/lib/object"
blankObject // => {}
blankObject instanceof Object // => true
blankObject.constructor === Object // true

import empty from "blanks/lib/array"
empty // => []
Array.isArray(empty) // => true

Keywords