# yyx-list

> js list implements

Latest version **0.3.0** (published 2018-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install yyx-list
pnpm add yyx-list
yarn add yyx-list
bun add yyx-list
```

## 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.3.0 |
| Published | 2018-04-19 |
| First published | 2017-09-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 78.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | yyx |
| Maintainers | coderyyx |
| Keywords | js, js-list |

## Links

- npm: https://www.npmjs.com/package/yyx-list
- Repository: https://github.com/coderyyx/yyx-list
- Homepage: https://github.com/coderyyx/yyx-list#readme
- Issues: https://github.com/coderyyx/yyx-list/issues
- npm.io page: https://npm.io/package/yyx-list

## Dependencies (7)

- [path](https://npm.io/package/path.md) ^0.12.7
- [babel](https://npm.io/package/babel.md) ^6.5.2
- [webpack](https://npm.io/package/webpack.md) ^1.13.1
- [babel-core](https://npm.io/package/babel-core.md) ^6.10.4
- [babel-loader](https://npm.io/package/babel-loader.md) ^6.2.4
- [babel-preset-es2015](https://npm.io/package/babel-preset-es2015.md) ^6.9.0
- [babel-preset-stage-0](https://npm.io/package/babel-preset-stage-0.md) ^6.16.0

## 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

- 0.3.0 (latest) — 2018-04-19
- 0.2.2 — 2017-12-12
- 0.2.1 — 2017-10-08
- 0.2.0 — 2017-10-08
- 0.1.9 — 2017-10-08
- 0.1.8 — 2017-10-08
- 0.1.7 — 2017-09-26
- 0.1.6 — 2017-09-26
- 0.1.5 — 2017-09-26
- 0.0.5 — 2017-09-25
- 0.0.4 — 2017-09-25
- 0.0.3 — 2017-09-24
- 0.0.2 — 2017-09-24
- 0.0.1 — 2017-09-24

## README

# yyx-list
基于ECMAscript 2015 的Array Api 封装的类似java的List集合
把平时业务中常用的方法封装到一起，主要目的简化业务代码，结构更清晰。
希望大家提出宝贵意见，使它更加完善。

[![travis][travis-image]][travis-url]
[![dep][dep-image]][dep-url]
[![npm][npm-image]][npm-url]
[![downloads][downloads-image]][downloads-url]

[travis-image]: https://img.shields.io/travis/then/yyx-list.svg?style=flat
[travis-url]: https://travis-ci.org/then/monkeyui
[dep-image]: https://img.shields.io/david/then/yyx-list.svg?style=flat
[dep-url]: https://david-dm.org/then/yyx-list
[npm-image]: https://img.shields.io/npm/v/yyx-list.svg?style=flat
[npm-url]: https://npmjs.org/package/yyx-list
[downloads-image]: https://img.shields.io/npm/dm/yyx-list.svg?style=flat
[downloads-url]: https://npmjs.org/package/yyx-list

##install:
<code>npm install yyx-list</code>

## Tips
这些API将挂载到全局JavaScript环境，所有数组将默认实现这些api，请在应用启动时予以引用；

___________________________________________
## Usage yyx-list 

```javascript
require('yyx-list');
 
let ins = [1,2,3]; 
 
//添加元素
ins.add();
return list;
 
//移除元素
ins.remove(item)
return boolean;
 
//list 长度
ins.size();
return length;
 
//查询object list
ins.queryItem({field:'field',value:555});
return queryObject;
 
//统计某个字段的集合
ins.getCollection({field:'field'});
return arrayList;
 
//查询某个元素位置
ins.pos({field:'field',value:555} || 'string')
return position;
 
//清空list
ins.clear()
return empty list;

//排序
/**
 * type 排序方法类型
 * 目前支持bubbles selectSort
 * 
 * dc 升序、降序
 * asc 、des
 * 默认升序
 * /
ins.sort(type,dc)
```
___________________________________________

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