2.0.3 • Published 6 years ago
ghost-default
Licence
ISC
Version
2.0.3
Deps
0
Size
10 kB
Vulns
0
Weekly
0
usage
let { createDefaultGhost } = require('ghost-default')
let object = {
hello: (name) => "hello " + name + "!"
}
let ghost = createDefaultGhost(object)
ghost.hello("Alice")("default") // => "hello Alice!"
ghost.hi("Bob")("default") // => "default"