Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

@gaubee/tc39-shim

中文 / English

This project maintains the same style as @gaubee/util (providing functional programming style to avoid side effects) and offers common shims. It supports on-demand imports, and for runtimes with native support, there is minimal additional overhead.

  1. decimal - Decimal arithmetic for precise numerical calculations
  2. pipeline - Functional pipeline operations
  3. promise - Promise extension functions
  4. set - Set extension functions

About Side Effects

By default, this project does not modify any native objects. If you need to apply it globally (polyfill), please use applyEffect for installation. For example:

import {
  applyEffect,
  promise_with_resolvers,
  set_difference,
  set_intersection,
  set_is_disjoint_from,
  set_is_subset_of,
  set_is_superset_of,
  set_symmetric_difference,
  set_union,
} from "@gaubee/tc39-shim";
applyEffect(promise_with_resolvers, set_union, set_intersection, set_difference, set_symmetric_difference, set_is_subset_of, set_is_superset_of, set_is_disjoint_from);