1.0.5 • Published 2 years ago

@pipeletteio/nop v1.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Installation

npm install @pipeletteio/nop

Example

import { nop, isNop } from '@pipeletteio/nop';
// const { nop, isNop } = require('@pipeletteio/nop');

isNop(nop); // => true

isNop(function () {}); // => false

Docs

Read documentation for more informations.

API

nop

The nop function which will be used to replace the non cancellable callables.

argumenttypedetails
...argany[]...

Return void.

isNop

Check if the argument is the nop function.

argumenttypedetails
arganyThe checked argument.

Return a boolean.