Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@sz-sw/no-op

sz-coder3MIT1.0.0

No-op function that returns a value when called.

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