JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 46071
  • Score
    100M100P100Q149949F
  • License ISC

Collects all values from an async iterator, sorts them using the passed function and yields them

Package Exports

  • it-sort

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (it-sort) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

it-sort

Build status Coverage Status Dependencies Status

Collects all values from an async iterator, sorts them using the passed function and yields them

Install

$ npm install --save it-sort

Usage

const sort = require('it-sort')
const all = require('it-all')

const sorter = (a, b) => {
  return a.localeCompare(b)
}

// This can also be an iterator, async iterator, generator, etc
const values = ['foo', 'bar']

const arr = await all(sort(values, sorter))

console.info(arr) // 'bar', 'foo'