JSPM

set-filter

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q17885F
  • License MIT

Filter a ES6 Set

Package Exports

  • set-filter

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 (set-filter) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

set-filter

import filter from 'set-filter';

const set = new Set();
set.add(1);
set.add(2);
set.add(3);

const newSet = filter(set, num => num % 2);