# nv-array-replace-with-value

> nv-array-replace-with-value ============ - nv-array-replace-with-value

Latest version **1.0.0** (published 2020-11-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install nv-array-replace-with-value
pnpm add nv-array-replace-with-value
yarn add nv-array-replace-with-value
bun add nv-array-replace-with-value
```

## 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 | 2020-11-20 |
| First published | 2020-11-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ihgazni2 |

## Links

- npm: https://www.npmjs.com/package/nv-array-replace-with-value
- npm.io page: https://npm.io/package/nv-array-replace-with-value

## Dependencies (1)

- [nv-array-replace-with-function](https://npm.io/package/nv-array-replace-with-function.md) ^1.0.1

## Recent versions

- 1.0.0 (latest) — 2020-11-20

## README

nv-array-replace-with-value
============
- nv-array-replace-with-value 


install
=======
- npm install nv-array-replace-with-value 

usage
=====
    
example
-------

    const ary_vrplc = require("nv-array-replace-with-value")

    var arr = [1,2,3,4,3,3,7]
    ary_vrplc.all(arr,'x',3)
    //arr  [1,   2,   'x', 4,'x', 'x', 7]


    var arr = [1,2,3,4,3,3,7]
    ary_vrplc.all_not(arr,'x',3)
    //arr  ['x', 'x', 3,   'x',3,   3,   'x']



    var arr = [1,2,3,4,3,3,7]
    ary_vrplc.fst(arr,'x',3)
    //arr  [1, 2, 'x', 4,3, 3, 7]


    var arr = [1,2,3,4,3,3,7]
    ary_vrplc.fst_not(arr,'x',3)
    //arr ['x', 2, 3, 4,3,   3, 7]


    var arr = [1,2,3,4,3,3,7]
    ary_vrplc.which(arr,'x',3,1)
    //arr  [1,   2, 3, 4,'x', 3, 7]



    var arr = [1,2,3,4,3,3,7]
    ary_vrplc.which_not(arr,'x',3,1)
    /*
    > arr
    
    >
    */

    var arr = [1,2,3,4,3,3,7]
    ary_vrplc.which_from_lst(arr,'x',3,1)
    /*
        > arr
         [
           1, 'x', 3, 4,
           3, 3,   7
         ]
    */

    var arr = [1,2,3,4,3,3,7]
    ary_vrplc.which_not_from_lst(arr,'x',3,1)
    /*
    > arr
       [
         1, 2, 3, 'x',
         3, 3, 7
       ]
    */

    var arr = [1,2,3,4,3,3,7]
    ary_vrplc.lst(arr,'x',3)
    //arr 

    var arr = [1,2,3,4,3,3,7]
    ary_vrplc.lst_not(arr,'x',3)
    /*
        > arr
        [
          1, 2,   3, 4,
          3, 'x', 7
        ]
        >
    */
    var arr = [1,2,3,4,3,3,7]
    ary_vrplc.some(arr,'x',3,0,2)
    //arr   [1, 2,   'x', 4,3, 'x', 7]


    var arr = [1,2,3,4,3,3,7]
    ary_vrplc.some_not(arr,'x',3,0,2)
    /*
       > arr
       [
         'x', 2, 3, 'x',
         3,   3, 7
       ]
       >
    */

    var arr = [1,2,3,4,3,3,7]
    ary_vrplc.some_from_lst(arr,'x',3,0,2)
    /*
        > arr
        [
          1, 2,   'x', 4,
          3, 'x', 7
        ]
        >
    */

    var arr = [1,2,3,4,3,3,7]
    ary_vrplc.some_not_from_lst(arr,'x',3,0,2)
    /*
        > arr
        [
          1, 'x', 3,   4,
          3, 3,   'x'
        ]
        >
    */

API
====

- ary\_vrplc.all(arr,rplc\_by,value)
- ary\_vrplc.all\_not(arr,rplc\_by,value)
- ary\_vrplc.which(arr,rplc\_by,value,which)
- ary\_vrplc.which\_not(arr,rplc\_by,value,which)
- ary\_vrplc.which\_from\_lst(arr,rplc\_by,value,which)
- ary\_vrplc.which\_not\_from\_lst(arr,rplc\_by,value,which)
- ary\_vrplc.fst(arr,rplc\_by,value)
- ary\_vrplc.fst\_not(arr,rplc\_by,value)
- ary\_vrplc.lst(arr,rplc\_by,value)
- ary\_vrplc.lst\_not(arr,rplc\_by,value)
- ary\_vrplc.some(arr,rplc\_by,value,...whiches)
- ary\_vrplc.some\_not(arr,rplc\_by,value,...whiches)
- ary\_vrplc.some\_from\_lst(arr,rplc\_by,value,...whiches)
- ary\_vrplc.some\_not\_from\_lst(arr,rplc\_by,value,...whiches)


LICENSE
=======
- ISC

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