# to-negative-array

> A JavaScript Package For Converting Positive Value To negative. Also works when non-numbers are present as well.

Latest version **1.0.2** (published 2017-10-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install to-negative-array
pnpm add to-negative-array
yarn add to-negative-array
bun add to-negative-array
```

## 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.2 |
| Published | 2017-10-03 |
| First published | 2017-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Prosen Ghosh |
| Maintainers | prosen-ghosh |
| Keywords | negative, array, element, convert, minus, list |

## Links

- npm: https://www.npmjs.com/package/to-negative-array
- Repository: https://github.com/Prosen-Ghosh/to-negative-array
- Homepage: https://github.com/Prosen-Ghosh/to-negative-array#readme
- Issues: https://github.com/Prosen-Ghosh/to-negative-array/issues
- npm.io page: https://npm.io/package/to-negative-array

## Recent versions

- 1.0.2 (latest) — 2017-10-03
- 1.0.1 — 2017-10-03
- 1.0.0 — 2017-10-03

## README

# to-negative-array
A JavaScript Package For Converting Positive Value To negative. Also works when non-numbers are present as well.

![npm](https://img.shields.io/npm/v/to-negative-array.svg) ![license](https://img.shields.io/npm/l/to-negative-array.svg) ![github-issues](https://img.shields.io/github/issues/Prosen-Ghosh/to-negative-array.svg) 
![stars](https://img.shields.io/github/stars/Prosen-Ghosh/to-negative-array.svg)
![forks](https://img.shields.io/github/forks/Prosen-Ghosh/to-negative-array.svg)

## Features

## `npm` Install

`npm install --save to-negative-array`


## Script Tag

#### For Development
```js
<script src="https://rawgit.com/Prosen-Ghosh/to-negative-array/master/negative.js"></script>
```
#### For Production
```js
<script src="https://cdn.rawgit.com/Prosen-Ghosh/to-negative-array/7d9e5e1c/negative.js"></script>
```

## Usage

```js

const toNegative = require('to-negative-array');

toNegative([]);
//=> null

toNegative([1,2,3,4,5]);
//=> [ -1, -2, -3, -4, -5 ]

toNegative([1,2,3,4,5,{}]);
//=> [ -1, -2, -3, -4, -5, {} ]

toNegative([1,2,3,4,5,{},[]]);
//=> [ -1, -2, -3, -4, -5, {}, [] ]

toNegative([1,2,3,4,5,{},[],""]);
//=> [ -1, -2, -3, -4, -5, {}, [], '' ]

toNegative([1,2,3,4,5,{},[],"",-100]);
//=> [ -1, -2, -3, -4, -5, {}, [], '', -100 ]

toNegative(); // without parameter thid function will throw a type error
//=> TypeError: negative() expects an array parameter


```

## Author

Prosen Ghosh <prosenghosh25@gmail.com> (https://bd.linkedin.com/in/prosen-ghosh-baba9aa8)

## License

 - **MIT**

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