Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-van committed Aug 20, 2024
1 parent a931683 commit 2466480
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 10 deletions.
5 changes: 5 additions & 0 deletions src/asyncFilterObject.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import asyncGeneratorFilter from './asyncGeneratorFilter.mjs'
import generatorEntries from './generatorEntries.mjs'
import asyncWrap from './asyncWrap.mjs'

/**

Check warning on line 8 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @returns declaration

Check warning on line 8 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @returns declaration

Check warning on line 8 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @returns declaration

Check warning on line 8 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @returns declaration

Check warning on line 8 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @returns declaration

Check warning on line 8 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @returns declaration

Check warning on line 8 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @returns declaration

Check warning on line 8 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @returns declaration

Check warning on line 8 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @returns declaration

Check warning on line 8 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @returns declaration

Check warning on line 8 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @returns declaration

Check warning on line 8 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @returns declaration

Check warning on line 8 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @returns declaration

Check warning on line 8 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @returns declaration
* @param obj

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "obj" description

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "obj" type

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "obj" description

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "obj" type

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "obj" description

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "obj" type

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "obj" description

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "obj" type

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "obj" description

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "obj" type

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "obj" description

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "obj" type

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "obj" description

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "obj" type

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "obj" description

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "obj" type

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "obj" description

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "obj" type

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "obj" description

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "obj" type

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "obj" description

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "obj" type

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "obj" description

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "obj" type

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "obj" description

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "obj" type

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "obj" description

Check warning on line 9 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "obj" type
* @param iteratee

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "iteratee" description

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "iteratee" type

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "iteratee" description

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "iteratee" type

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "iteratee" description

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "iteratee" type

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "iteratee" description

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "iteratee" type

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "iteratee" description

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "iteratee" type

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "iteratee" description

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "iteratee" type

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "iteratee" description

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "iteratee" type

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "iteratee" description

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "iteratee" type

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "iteratee" description

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "iteratee" type

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "iteratee" description

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "iteratee" type

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "iteratee" description

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "iteratee" type

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "iteratee" description

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "iteratee" type

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "iteratee" description

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "iteratee" type

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "iteratee" description

Check warning on line 10 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "iteratee" type
* @param queueOrConcurrency

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "queueOrConcurrency" description

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "queueOrConcurrency" type

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "queueOrConcurrency" description

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "queueOrConcurrency" type

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "queueOrConcurrency" description

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "queueOrConcurrency" type

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "queueOrConcurrency" description

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "queueOrConcurrency" type

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "queueOrConcurrency" description

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "queueOrConcurrency" type

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "queueOrConcurrency" description

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "queueOrConcurrency" type

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "queueOrConcurrency" description

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "queueOrConcurrency" type

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "queueOrConcurrency" description

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "queueOrConcurrency" type

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "queueOrConcurrency" description

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "queueOrConcurrency" type

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "queueOrConcurrency" description

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "queueOrConcurrency" type

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "queueOrConcurrency" description

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "queueOrConcurrency" type

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "queueOrConcurrency" description

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "queueOrConcurrency" type

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "queueOrConcurrency" description

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "queueOrConcurrency" type

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "queueOrConcurrency" description

Check warning on line 11 in src/asyncFilterObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "queueOrConcurrency" type
*/
async function asyncFilterObject (obj, iteratee, queueOrConcurrency = 1) {
iteratee = asyncWrap(iteratee)
return await asyncFromEntries(asyncGeneratorFilter(generatorEntries(obj), async ([k, v]) => {
Expand Down
8 changes: 8 additions & 0 deletions src/asyncFindKey.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@

import asyncFindInternal from './asyncFindInternal.mjs'
import generatorEntries from './generatorEntries.mjs'
import asyncWrap from './asyncWrap.mjs'
import Queue from './Queue.mjs'

Check failure on line 5 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

'Queue' is defined but never used

Check failure on line 5 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

'Queue' is defined but never used

Check failure on line 5 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

'Queue' is defined but never used

Check failure on line 5 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

'Queue' is defined but never used

Check failure on line 5 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

'Queue' is defined but never used

Check failure on line 5 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

'Queue' is defined but never used

Check failure on line 5 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

'Queue' is defined but never used

Check failure on line 5 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

'Queue' is defined but never used

Check failure on line 5 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

'Queue' is defined but never used

Check failure on line 5 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

'Queue' is defined but never used

Check failure on line 5 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

'Queue' is defined but never used

Check failure on line 5 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

'Queue' is defined but never used

Check failure on line 5 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

'Queue' is defined but never used

Check failure on line 5 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

'Queue' is defined but never used

/**

Check warning on line 7 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @returns declaration

Check warning on line 7 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @returns declaration

Check warning on line 7 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @returns declaration

Check warning on line 7 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @returns declaration

Check warning on line 7 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @returns declaration

Check warning on line 7 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @returns declaration

Check warning on line 7 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @returns declaration

Check warning on line 7 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @returns declaration

Check warning on line 7 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @returns declaration

Check warning on line 7 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @returns declaration

Check warning on line 7 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @returns declaration

Check warning on line 7 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @returns declaration

Check warning on line 7 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @returns declaration

Check warning on line 7 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @returns declaration
* @param obj

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "obj" description

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "obj" type

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "obj" description

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "obj" type

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "obj" description

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "obj" type

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "obj" description

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "obj" type

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "obj" description

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "obj" type

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "obj" description

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "obj" type

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "obj" description

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "obj" type

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "obj" description

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

Missing JSDoc @param "obj" type

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "obj" description

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

Missing JSDoc @param "obj" type

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "obj" description

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

Missing JSDoc @param "obj" type

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "obj" description

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

Missing JSDoc @param "obj" type

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "obj" description

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

Missing JSDoc @param "obj" type

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "obj" description

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "obj" description

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

Missing JSDoc @param "obj" type

Check warning on line 8 in src/asyncFindKey.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

Missing JSDoc @param "obj" type
* @param iteratee
* @param queueOrConcurrency
* @param ordered
*/
async function asyncFindKey (obj, iteratee, queueOrConcurrency = 1, ordered = false) {
iteratee = asyncWrap(iteratee)
// eslint-disable-next-line no-unused-vars
const [k, _] = (await asyncFindInternal(generatorEntries(obj), async ([k, v]) => {
return await iteratee(v, k, obj)
}, queueOrConcurrency, ordered))[1]
Expand Down
6 changes: 6 additions & 0 deletions src/asyncForEachObject.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,13 @@
import asyncGeneratorMap from './asyncGeneratorMap.mjs'
import generatorEntries from './generatorEntries.mjs'
import Queue from './Queue.mjs'

Check failure on line 4 in src/asyncForEachObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncForEachObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncForEachObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncForEachObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncForEachObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncForEachObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncForEachObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncForEachObject.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncForEachObject.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncForEachObject.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncForEachObject.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncForEachObject.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncForEachObject.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncForEachObject.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

'Queue' is defined but never used
import asyncWrap from './asyncWrap.mjs'

/**
* @param obj
* @param iteratee
* @param queueOrConcurrency
*/
async function asyncForEachObject (obj, iteratee, queueOrConcurrency = 1) {
iteratee = asyncWrap(iteratee)
// eslint-disable-next-line no-unused-vars
Expand Down
22 changes: 13 additions & 9 deletions src/asyncGroupBy.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,24 @@ import asyncGeneratorMap from './asyncGeneratorMap.mjs'
import asyncWrap from './asyncWrap.mjs'
import Queue from './Queue.mjs'

Check failure on line 4 in src/asyncGroupBy.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncGroupBy.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncGroupBy.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncGroupBy.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncGroupBy.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncGroupBy.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncGroupBy.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncGroupBy.mjs

View workflow job for this annotation

GitHub Actions / test (20.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncGroupBy.mjs

View workflow job for this annotation

GitHub Actions / test (22.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncGroupBy.mjs

View workflow job for this annotation

GitHub Actions / test (21.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncGroupBy.mjs

View workflow job for this annotation

GitHub Actions / test (18.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncGroupBy.mjs

View workflow job for this annotation

GitHub Actions / test (12.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncGroupBy.mjs

View workflow job for this annotation

GitHub Actions / test (14.x)

'Queue' is defined but never used

Check failure on line 4 in src/asyncGroupBy.mjs

View workflow job for this annotation

GitHub Actions / test (16.x)

'Queue' is defined but never used

/**
* @param iterable
* @param iteratee
* @param queueOrConcurrency
*/
async function asyncGroupBy (iterable, iteratee, queueOrConcurrency = 1) {
interatee = asyncWrap(iteratee)
iteratee = asyncWrap(iteratee)
const groups = {}
for await (const [group, value] of asyncGeneratorMap(iterable, async (v, i, it) =>
{
const group = await iteratee(v, i, it)
return [group, v]
}, queueOrConcurrency))
{
if (!(group in groups))
{
for await (const [group, value] of asyncGeneratorMap(iterable, async (v, i, it) => {
const group = await iteratee(v, i, it)
return [group, v]
}, queueOrConcurrency)) {
if (!(group in groups)) {
groups[group] = []
}
groups[group].push(value)
}
return groups
}

export default asyncGroupBy
2 changes: 1 addition & 1 deletion src/asyncReduceRight.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import asyncIterableToArray from './asyncIterableToArray.mjs'
/**
* Performs a reduce operation as defined in the `Array.reduceRight()` method but using an asynchronous
* function as reducer. The reducer will be called sequentially.
*
*
* Please note that this function exists only to provide compatibility with standard `Array.reduceRight()`.
* Internally it only reads all values from the given iterator, store them all in an array, revert that array
* and performs a common {@link asyncReduce} call. (Functions iterating on arrays from right to left do not
Expand Down
2 changes: 2 additions & 0 deletions src/generatorEntries.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@

import assert from 'nanoassert'

/**
* An alternative to standard `Object.entries()` function, but returning an iterable
* returning each key-value pair in the object.
Expand Down

0 comments on commit 2466480

Please sign in to comment.