# nv-array-range

> nv-array-range ============ - nv-array-range - subview and range of array

Latest version **1.0.3** (published 2025-02-20) · ISC license · 0 weekly downloads

## Install

```sh
npm install nv-array-range
pnpm add nv-array-range
yarn add nv-array-range
bun add nv-array-range
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

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

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2025-02-20 |
| First published | 2021-06-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | ihgazni2 |
| Keywords | array, range, subview, pop-at |

## Links

- npm: https://www.npmjs.com/package/nv-array-range
- npm.io page: https://npm.io/package/nv-array-range

## Dependencies (1)

- [nv-facutil-basic](https://npm.io/package/nv-facutil-basic.md) ^1.0.59

## Recent versions

- 1.0.3 (latest) — 2025-02-20
- 1.0.2 — 2023-06-01
- 1.0.1 — 2021-06-13
- 1.0.0 — 2021-06-13

## README

nv-array-range
============
- nv-array-range 
- subview and range of array

install
=======
- npm install nv-array-range 

usage
=====

     const {Range,shuffle} = require("./index");

        
example
-------

    var ary = [10,20,30,40,50,60,70,80]
    var range = new Range(ary)


    > range
    {
      ranges: [
          [0,8)
      ],
      view: [
        10, 20, 30, 40,
        50, 60, 70, 80
      ],
      ary: [
        10, 20, 30, 40,
        50, 60, 70, 80
      ]
    }
    >

    > range.popat(3)
    40
    > range
    {
      ranges: [
          [0,3),
          [4,8)
      ],
      view: [
        10, 20, 30, 50,
        60, 70, 80
      ],
      ary: [
        10, 20, 30, 40,
        50, 60, 70, 80
      ]
    }
    >

    > range.popat(3)
    Symbol(noexist)
    >
    > range.popat(6)
    70
    > range
    {
      ranges: [
          [0,3),
          [4,6),
          [7,8)
      ],
      view: [ 10, 20, 30, 50, 60, 80 ],
      ary: [
        10, 20, 30, 40,
        50, 60, 70, 80
      ]
    }
    >

    > range.popat(2)
    30
    > range.popat(5)
    60
    > range.popat(4)
    50
    > range
    {
      ranges: [
          [0,2),
          [7,8)
      ],
      view: [ 10, 20, 80 ],
      ary: [
        10, 20, 30, 40,
        50, 60, 70, 80
      ]
    }
    >

METHODS
=======

    range.ary_                  range.constructor           range.popat
    range.rngs_                 range.slcs_                 range.view_
    range.vwlength_



API
====

- ary\_rng.noexist
- ary\_rng.Range(ary,si,ei)
- ary\_rng.shuffle(ary)

LICENSE
=======
- ISC

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