itertools
Advanced tools
Comparing version 2.2.5 to 2.3.0
{ | ||
"name": "itertools", | ||
"version": "2.2.5", | ||
"version": "2.3.0", | ||
"description": "A JavaScript port of Python's awesome itertools standard library", | ||
@@ -52,9 +52,9 @@ "license": "MIT", | ||
"devDependencies": { | ||
"@arethetypeswrong/cli": "^0.15.0", | ||
"@arethetypeswrong/cli": "^0.15.2", | ||
"@release-it/keep-a-changelog": "^5.0.0", | ||
"@typescript-eslint/eslint-plugin": "^7.0.2", | ||
"@typescript-eslint/parser": "^7.0.2", | ||
"@vitest/coverage-istanbul": "^1.3.1", | ||
"@typescript-eslint/eslint-plugin": "^7.5.0", | ||
"@typescript-eslint/parser": "^7.5.0", | ||
"@vitest/coverage-istanbul": "^1.4.0", | ||
"eslint": "^8.57.0", | ||
"fast-check": "^3.16.0", | ||
"fast-check": "^3.17.1", | ||
"prettier": "^3.2.5", | ||
@@ -64,5 +64,5 @@ "publint": "^0.2.7", | ||
"tsup": "^8.0.2", | ||
"typescript": "^5.3.3", | ||
"vite-tsconfig-paths": "^4.3.1", | ||
"vitest": "^1.3.1" | ||
"typescript": "^5.4.4", | ||
"vite-tsconfig-paths": "^4.3.2", | ||
"vitest": "^1.4.0" | ||
}, | ||
@@ -69,0 +69,0 @@ "githubUrl": "https://github.com/nvie/itertools", |
@@ -435,2 +435,3 @@ [![npm](https://img.shields.io/npm/v/itertools.svg)](https://www.npmjs.com/package/itertools) | ||
- [uniqueJustseen](#uniqueJustseen) | ||
- [dupes](#dupes) | ||
@@ -529,2 +530,11 @@ <a name="chunked" href="#chunked">#</a> <b>chunked</b>(iterable: <i>Iterable<T></i>, size: <i>number</i>): <i>Iterable<T[]></i> [<>](https://github.com/nvie/itertools.js/blob/master/src/more-itertools.js 'Source') | ||
<a name="dupes" href="#dupes">#</a> <b>dupes</b>(iterable: <i>Iterable<T></i>, keyFn?: <i>(item: T) => Primitive</i></i>): <i>Iterable<T[]></i> [<>](https://github.com/nvie/itertools.js/blob/master/src/more-itertools.js 'Source') | ||
Yield only elements from the input that occur more than once. Needs to consume the entire input before being able to produce the first result. | ||
>>> [...dupes('AAAABCDEEEFABG')] | ||
[['A', 'A', 'A', 'A', 'A'], ['E', 'E', 'E'], ['B', 'B']] | ||
>>> [...dupes('AbBCcAB', s => s.toLowerCase())] | ||
[['b', 'B', 'B'], ['C', 'c'], ['A', 'A']] | ||
### Additions | ||
@@ -531,0 +541,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
192124
593