# modernarray

> A modern User-friendly array which supports stack Operations. This helps you to handle and modify arrays nice and easily

Latest version **1.0.8** (published 2021-07-24) · MIT license · 0 weekly downloads

## Install

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

## 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.8 |
| Published | 2021-07-24 |
| First published | 2021-07-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Tibin Sunny |
| Maintainers | tibinsunny |
| Keywords | modernarray, arraypop, arraypush, json array pop, array push, arraymodification, pushbyindex, popByIndex, json array, json array push |

## Links

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

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.8 (latest) — 2021-07-24
- 1.0.7 — 2021-07-24
- 1.0.6 — 2021-07-24
- 1.0.5 — 2021-07-23
- 1.0.4 — 2021-07-23
- 1.0.3 — 2021-07-23
- 1.0.2 — 2021-07-23
- 1.0.1 — 2021-07-23
- 1.0.0 — 2021-07-23

## README

# Modernarray
A modern User-friendly array which supports stack Operations. This helps you to handle and modify arrays nice and easily 


# Install

    npm install modernarray


# Usage and Example

``` javascript
let modernarray = require('modernarray');
let myArray=[{
    name:"Joe Deo",
    status:false
},
{
    name:"Bob Painter",
    status:true
}]
// Array can also be let modernarray = [1,2,3,4,5,6,7,8]
let outputArray = modernarray.popByIndex(myArray,1)
/* Output Array will just have 
[{
    name:"Joe Deo",
    status:false
}]
Array at index 1 is Removed
*/
let outputArray2 = modernarray.popByValue(myArray,{status:false})
/* Output Array will just have 
[{
    name:"Bob Painter",
    status:true
}]
Array element with status "false" is removed 
*/
let outputArray3 = modernarray.pushToIndex(myArray,1,{name:"John Bell",status:true})

/* Output Array will  have 
[
  { name: 'Joe Deo', status: false },
  { name: 'John Bell', status: true },
  { name: 'Bob Painter', status: true }
]
New Element is added
*/
```
## Supported Function
* popByIndex(array,index)
* popByValue(array,value)
* pushToIndex(array,index,value)

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