2.34.2 • Published 9 months ago

@sparkwave/standard v2.34.2

Weekly downloads
307
License
MIT
Repository
github
Last release
9 months ago

standard.js

A standard library for JavaScript/TypeScript

Features

  • Lazy iterable combinators such as map, filter, reduce, etc.
  • Lazy async iterable combinators such as mapAsync, filterAsync, etc.
  • Fluent iterable containers: Sequence, Set, Array, ArrayNumeric, Dictionary
  • Functional combinators such as flip, curry, etc.
  • Async combinators such as promisify, sleep, etc.
  • Statistical functions such as mean, median, quartiles, variance/standard deviation, etc.
  • Advanced string, date-time, and numeric functions
  • Utility types, type guards, and value helpers

Install

npm install --save @sparkwave/standard

Usage

// import specific functions from specific modules
import { mapAsync, ZipAsync, isAsyncIterable /*, ...*/ } from "@sparkwave/standard/collections/combinators"
import { keys, entries, pick, omit  /*, ...*/ } from "@sparkwave/standard/object"
import { sleep, promisify } from "@sparkwave/standard/async"

// import everything from a module
import * as containers from "@sparkwave/standard/collections/containers"
const numArray = new containers.Array([1, 2, 3])

// import everything from package
import * as stdlib from "@sparkwave/standard"
type Predicate<T> = stdlib.Predicate<T>
2.34.2

9 months ago

2.34.1

9 months ago

2.33.1

2 years ago

2.33.0

2 years ago

4.0.3

2 years ago

2.31.0

3 years ago

2.30.0

3 years ago

2.29.0

3 years ago

2.29.1

3 years ago

2.28.1

3 years ago

2.28.0

3 years ago

2.27.0

4 years ago

2.26.1

4 years ago

2.26.0

4 years ago

2.25.0

4 years ago

2.24.2

4 years ago

2.24.1

4 years ago

2.24.0

4 years ago

2.23.0

4 years ago

2.22.0

4 years ago

2.21.0

4 years ago

2.20.0

4 years ago

2.19.0

4 years ago

2.18.0

4 years ago

2.17.0

4 years ago

2.16.0

4 years ago

2.15.0

4 years ago

2.14.0

4 years ago

2.13.0

4 years ago

2.12.0

4 years ago

2.11.0

4 years ago

2.10.1

4 years ago

2.10.0

4 years ago

2.9.0

4 years ago

2.8.0

4 years ago

2.7.0

4 years ago

2.6.0

4 years ago

2.5.1

4 years ago

2.5.0

4 years ago

2.4.0

4 years ago

2.3.1

4 years ago