# u-contains

> A uniform way to check if a string or array contains another string

Latest version **0.0.1** (published 2016-11-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install u-contains
pnpm add u-contains
yarn add u-contains
bun add u-contains
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2016-11-27 |
| First published | 2016-11-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Chris Deacy |
| Maintainers | chrisdothtml |

## Links

- npm: https://www.npmjs.com/package/u-contains
- Repository: https://github.com/chrisdothtml/u-contains
- Homepage: https://github.com/chrisdothtml/u-contains#readme
- Issues: https://github.com/chrisdothtml/u-contains/issues
- npm.io page: https://npm.io/package/u-contains

## Recent versions

- 0.0.1 (latest) — 2016-11-27

## README

# u-contains

> A [uniform](https://github.com/chrisdothtml/uniform) way to check if a string or array contains another string

## Install

```bash
npm install --save u-contains
```

## Use

```javascript
var contains = require('u-contains')

contains('foobar', 'foo') // true
contains('foobar', 'baz') // false
contains(['foo', 'bar'], 'foo') // true
contains(['foo', 'bar'], 'baz') // false
```

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