@sz-sw/no-op
v1.0.0
Published
No-op function that returns a `value` when called.
Downloads
2
Readme
@sz-sw/no-op
No-op function that returns a value
when called.
const noopFactory = require("@sz-sw/no-op")
const noop1 = noopFactory()
const noop2 = noopFactory(1)
console.log(noop1()) // undefined
console.log(noop2()) // 1