# to-null

> Converts nullsy values to null (undefined, false, NaN), else returns the value

Latest version **1.0.0** (published 2016-03-17) · ISC license · 0 weekly downloads

## Install

```sh
npm install to-null
pnpm add to-null
yarn add to-null
bun add to-null
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-03-17 |
| First published | 2016-03-17 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | rangermauve |
| Maintainers | rangermauve |
| Keywords | convert, to, null, nil, false |

## Links

- npm: https://www.npmjs.com/package/to-null
- Repository: https://github.com/RangerMauve/to-null
- Homepage: https://github.com/RangerMauve/to-null#readme
- Issues: https://github.com/RangerMauve/to-null/issues
- npm.io page: https://npm.io/package/to-null

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-03-17

## README

# to-null
Converts "nullsy" values to `null` (`undefined`, `false`, `NaN`), else returns the value

``` bash
npm install --save to-null
```

```javascript
var toNull = require("to-null");

toNull(false); // null
toNull(undefined); // null
toNull(""); // "" not really null
toNull([1,2,3]); // [1,2,3]
```

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