1.0.5 • Published 4 years ago
@pipeletteio/nop v1.0.5
Installation
npm install @pipeletteio/nopExample
import { nop, isNop } from '@pipeletteio/nop';
// const { nop, isNop } = require('@pipeletteio/nop');
isNop(nop); // => true
isNop(function () {}); // => falseDocs
Read documentation for more informations.
API
nop
The nop function which will be used to replace the non cancellable callables.
| argument | type | details |
|---|---|---|
| ...arg | any[] | ... |
Return void.
isNop
Check if the argument is the nop function.
| argument | type | details |
|---|---|---|
| arg | any | The checked argument. |
Return a boolean.