@data-structure/deque
Version:
Python's deque data structure for JavaScript
27 lines (22 loc) • 2.57 kB
Markdown
:snake: [@data-structure/deque](https://data-structures-and-algorithms.github.io/deque)
==
Python's deque data structure for JavaScript.
See [docs](https://data-structures-and-algorithms.github.io/deque).
Parent is [js-data-structures](https://github.com/make-github-pseudonymous-again/js-data-structures).
```js
import {deque} from '@data-structure/deque';
deque( 'abcde' , 3 ) ; // 'cde'
```
[](https://raw.githubusercontent.com/data-structures-and-algorithms/deque/main/LICENSE)
[](https://www.npmjs.org/package/@data-structure/deque)
[](https://github.com/data-structures-and-algorithms/deque/actions/workflows/ci:test.yml?query=branch:main)
[](https://david-dm.org/data-structures-and-algorithms/deque)
[](https://david-dm.org/data-structures-and-algorithms/deque?type=dev)
[](https://github.com/data-structures-and-algorithms/deque/issues)
[](https://www.npmjs.org/package/@data-structure/deque)
[](https://codeclimate.com/github/data-structures-and-algorithms/deque/issues)
[](https://codeclimate.com/github/data-structures-and-algorithms/deque/trends/churn)
[](https://codecov.io/gh/data-structures-and-algorithms/deque)
[](https://codeclimate.com/github/data-structures-and-algorithms/deque/trends/technical_debt)
[](https://data-structures-and-algorithms.github.io/deque/source.html)
[](https://bundlephobia.com/result?p=@data-structure/deque)