@jianghe/array-queue
Advanced tools
+16
| # 数组实现循环队列 | ||
| ## 用法 | ||
| ```javascript | ||
| import { ERROR, OK, Queue } from '@jianghe/array-queue'; | ||
| // 创建长度为5的队列 | ||
| const queue = new Queue(5); | ||
| // 入队 | ||
| queue.enqueue('a'); | ||
| // 出队 | ||
| const res = queue.dequeue(); | ||
| // 清空队列 | ||
| queue.cleanQueue(); | ||
| ``` |
| /*! | ||
| * index.js v1.0.0 | ||
| * index.js v1.0.1 | ||
| * (c) 2019-2021 Jiang He | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
+1
-1
| /*! | ||
| * index.js v1.0.0 | ||
| * index.js v1.0.1 | ||
| * (c) 2019-2021 Jiang He | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
+1
-1
| /*! | ||
| * index.js v1.0.0 | ||
| * index.js v1.0.1 | ||
| * (c) 2019-2021 Jiang He | ||
@@ -4,0 +4,0 @@ * Released under the MIT License. |
+1
-1
| { | ||
| "name": "@jianghe/array-queue", | ||
| "version": "1.0.1", | ||
| "version": "1.0.2-0", | ||
| "private": false, | ||
@@ -5,0 +5,0 @@ "description": "数据结构-队列(数组)", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
15564
1.93%19
5.56%1
-50%17
Infinity%3
50%