0.6.0 • Published 8 months ago

@gaubee/tc39-shim v0.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

@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
    • Simulates the |> operator capability through array arrangement
    • Reference: https://github.com/tc39/proposal-pipeline-operator
    • Note: Currently implements basic pipeline operations only. Additional features like parameter position transformation will be improved in future updates

  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_union,
  set_intersection,
  set_difference,
  set_symmetric_difference,
  set_is_subset_of,
  set_is_superset_of,
  set_is_disjoint_from,
} 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);
0.6.0

8 months ago

0.5.0

9 months ago

0.4.2

9 months ago

0.4.1

9 months ago

0.4.0

9 months ago

0.3.7

9 months ago

0.3.6

9 months ago

0.3.5

9 months ago

0.3.4

9 months ago

0.3.3

9 months ago

0.3.2

9 months ago

0.3.1

9 months ago

0.3.0

9 months ago