# noop4

> No operation avoiding references

Latest version **1.2.0** (published 2015-12-19) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install noop4
pnpm add noop4
yarn add noop4
bun add noop4
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2015-12-19 |
| First published | 2015-12-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Gabriele Di Stefano |
| Maintainers | gabrieleds |
| Keywords | noop, noop4, no-op, no, op, operation, no operation, util, empty, nothing, null, nil, function, func, fn |

## Links

- npm: https://www.npmjs.com/package/noop4
- Repository: https://github.com/gabrieleds/noop4
- Homepage: https://github.com/gabrieleds/noop4#readme
- Issues: https://github.com/gabrieleds/noop4/issues
- npm.io page: https://npm.io/package/noop4

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 1.2.0 (latest) — 2015-12-19

## README

# noop4

  No operation avoiding references.

  [![NPM Version][npm-image]][npm-url]
  [![NPM Downloads][downloads-image]][downloads-url]
  [![License][license-image]][license-url]

## Install

```bash
$ npm install noop4 --save
```

## Usage

  Nothing happens and no references are created.

```javascript
var noop = require('noop4');

function example (fn) {
  fn = fn || noop();
  return fn('beep');
}

example();
// nothing happened
```

## Why?

  Sometimes the `noop` method is enriched with methods and properties.
  To ensure a clean usage `noop4` creates a new function each time avoiding previous references.

## See also
- [noop1][noop1-url]
- [noop2][noop2-url]
- [noop3][noop3-url]
- [nop][nop-url]
- [no-op][no-op-url]

## License

[MIT][license-url]

[npm-image]: https://img.shields.io/npm/v/noop4.svg?label=version&style=flat
[npm-url]: https://npmjs.org/package/noop4
[downloads-image]: https://img.shields.io/npm/dm/noop4.svg
[downloads-url]: https://npmjs.org/package/noop4
[license-image]: https://img.shields.io/badge/license-MIT-blue.svg
[license-url]: LICENSE

[noop1-url]: https://www.npmjs.com/package/noop
[noop2-url]: https://github.com/yoshuawuyts/noop2
[noop3-url]: https://github.com/sindresorhus/noop3
[nop-url]: https://github.com/supershabam/nop
[no-op-url]: https://github.com/mattdesl/no-op

---
_Source: https://npm.io/package/noop4 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
