# is-new

> A function that remembers the values passed to it and returns true if a value is new.

Latest version **1.0.0** (published 2017-11-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-new
pnpm add is-new
yarn add is-new
bun add is-new
```

## 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 | 2017-11-28 |
| First published | 2017-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | John Lamansky |
| Maintainers | lamansky |
| Keywords | new, unique |

## Links

- npm: https://www.npmjs.com/package/is-new
- Repository: https://github.com/lamansky/is-new
- Issues: https://github.com/lamansky/is-new/issues
- npm.io page: https://npm.io/package/is-new

## Dependencies (1)

- [weakish-set](https://npm.io/package/weakish-set.md) ^1.0.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-11-28

## README

# is-new

A function that remembers the values passed to it and returns true if a value is new. Packaged as a Node.js module.

## Installation

```bash
npm install is-new --save
```

## Usage

```javascript
const IsNew = require('is-new')

// Create instance
const isNew = IsNew()

// Works with objects
const obj = {}
isNew(obj) // true
isNew(obj) // false

// Works with scalars
isNew('test') // true
isNew('test') // false
```

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