@sz-sw-le0/no-op
v1.0.0
Published
Module that creates a function that does nothing (no-operation).
Downloads
5
Readme
no-op
Module that creates a function that does nothing (no-operation).
Example usage:
const noop = require("no-op")
const fn = noop(true)
// calling fn() does nothing
fn() // but it will return `true`