# array-wrapper

> Provides a wrapper with helper functions to assist with callback loops

Latest version **0.1.0** (published 2015-04-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install array-wrapper
pnpm add array-wrapper
yarn add array-wrapper
bun add array-wrapper
```

## 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.1.0 |
| Published | 2015-04-22 |
| First published | 2015-04-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+6 in 1 direct dependencies) |
| Install scripts | no |
| Author | Richard Gaunt |
| Maintainers | rgaunt |
| Keywords | wrapper, array, helper |

## Links

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

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^3.7.0

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2015-04-22
- 0.0.1 — 2015-04-22

## README

# Array-Wrapper

# Description

Simple wrapper around arrays providing a inbuilt interator to assist with callback functions

# API Usage
`` var sampleLinks = ['http://www.google.com', 'http://www.nodejs.org', 'http://www.stackoverflow.com'];
`` var Wrapper = require('array-wrapper');
`` var links = new Wrapper(sampleLinks); // builds the wrapper

`` console.log('get first element', links.get()); //gets the first element or the element the wrapper is currently pointing at
`` console.log('shift the pointer to the second link', links.next()); //shifts the pointer 
`` console.log('get current element (second element)', links.get()); // prints 'http://www.nodejs.org', the next element

`` console.log('move the pointer to the previous link', links.previous());

*Pointing the pointer to an out of bounds element returns undefined - it does not differentiate between an array with undefined elements and out of bounds elements*

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