# class-array-object

> class array object.

Latest version **1.1.3** (published 2019-05-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install class-array-object
pnpm add class-array-object
yarn add class-array-object
bun add class-array-object
```

## 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.1.3 |
| Published | 2019-05-16 |
| First published | 2019-05-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | backtome |
| Maintainers | backtome |
| Keywords | arrayobject, class array object, 类数组对象 |

## Links

- npm: https://www.npmjs.com/package/class-array-object
- Repository: https://github.com/sytana/class-array-object
- Homepage: https://github.com/sytana/class-array-object#readme
- Issues: https://github.com/sytana/class-array-object/issues
- npm.io page: https://npm.io/package/class-array-object

## Recent versions

- 1.1.3 (latest) — 2019-05-16
- 1.1.2 — 2019-05-14
- 1.1.1 — 2019-05-14
- 1.1.0 — 2019-05-14
- 0.1.0 — 2019-05-14

## README

# class-array-object
类数组对象

# usage
```js
import ArrayObject from 'class-array-object'
//or
//const ArrayObject = require('class-array-object')

let ao = new ArrayObject()  //{length: 0}
let ao = new ArrayObject({a: 1, b: 2})  //{a: 1, b: 2, length: 2}
let ao = new ArrayObject(1, 'b')  //{1: undefined, b: undefined, length: 2}
let ao = new ArrayObject([1, 'b'])  //{1: undefined, b: undefined, length: 2}
let ao = new ArrayObject({a: 1}, 2, [1, 'b'], 5)  //{a: 1, 1: undefined, 2: undefined, 5: undefined, b: undefined, length: 5}

//add
ao.add(c, '78')

//remove
ao.remove(c)

//map
ao.map((key, val) => {
	//
})
```

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