util

A useful collection of optimized utility functions for JavaScript and TypeScript

MIT License

Downloads
3.4K
Stars
7
Committers
4

Bot releases are visible (Hide)

util - v4.3.0

Published by github-actions[bot] about 3 years ago

4.3.0 (2021-08-02)

Features

  • array: add pull function (c12571f)
util - v4.2.1

Published by github-actions[bot] about 3 years ago

4.2.1 (2021-08-01)

Bug Fixes

  • range: export range file (fdebd86)
util - v4.2.0

Published by github-actions[bot] about 3 years ago

4.2.0 (2021-08-01)

Bug Fixes

  • format: improve type of truncate function (966693a)

Features

  • array: add holes function (0b63e2d)
  • iterable: add combineIterables function (169ba46)
  • iterable: add every function (1a79bce)
  • iterable: add find function (ac91f60)
  • iterable: add includes function (40011ea)
  • iterable: add join function (4f2000f)
  • iterable: add some function (ee8bf2c)
  • promise: add settled function (eb2a30d)
  • range: add Range class (6d057c1)
util - v4.1.0

Published by github-actions[bot] over 3 years ago

4.1.0 (2021-06-24)

Features

  • sort-compare: support mapping values before comparison in sort compare functions (283ed2d)
util - v4.0.0

Published by github-actions[bot] over 3 years ago

4.0.0 (2021-06-16)

Bug Fixes

  • array: change name property of shuffle function to be shuffle (481c81a)
  • cards: fix return type of newDeck function (1d507e2)

Features

  • array: add duplicates function (d45d29a)
  • array: rename duplicates function to allDuplicates (81adcad)
  • math: add bigint support to clamp function (b43db01)
  • math: add bigint support to mean function (8d5379a)
  • math: add bigint support to median function (5ca7d75)

BREAKING CHANGES

  • math: The mean function can no longer be used as a predicate to Array.prototype.filter. Instead it must be given an array as an argument
  • array: The duplicates function has been renamed to allDuplicates
util - v3.2.0

Published by github-actions[bot] over 3 years ago

3.2.0 (2021-06-16)

Features

  • curry: add invert function (86ad8fb)
util - v3.1.1

Published by github-actions[bot] over 3 years ago

3.1.1 (2021-06-15)

Bug Fixes

  • object: improve typesafety of rename function (5f9819b)
util - v3.1.0

Published by github-actions[bot] over 3 years ago

3.1.0 (2021-06-14)

Bug Fixes

  • sort: fix objects with Symbol.toPrimitive not being included in Comparable type (74430b4)

Features

  • object: add rename function (4285f60)

Performance Improvements

  • array: include error message in largeToSmall function only in development build (cbbdada)
util - v3.0.0

Published by github-actions[bot] over 3 years ago

3.0.0 (2021-06-13)

Features

  • array: return a single element if take parameter is undefined in first function (a7ca72a)
  • identical: rename identical function to same (276a1b5)
  • identical: rename identicalManual function to identical (e132acd)
  • sort: stop using Object.fromEntries to create return value in sortObject function (e8f1222)
  • sort-compare: remove top-level function exports (841d74b)

BREAKING CHANGES

  • sort: The sortObject function no longer returns an object (Record<K, V>), it now returns an array of entries (Array<[K, V]>) which can be used with Object.fromEntries
  • identical: The identicalManual function has been renamed to identical
  • identical: The identical function has been renamed to same
  • sort-compare: The ascending and descending functions have been renamed to Sort.ascending and Sort.descending
  • array: The return value of the first function is now T instead of T[] if the take parameter is undefined
util - v2.16.1

Published by github-actions[bot] over 3 years ago

2.16.1 (2021-06-13)

Bug Fixes

  • set: narrow return type of difference function (e0a280a)
util - v2.16.0

Published by github-actions[bot] over 3 years ago

2.16.0 (2021-06-13)

Bug Fixes

  • array: fix return type in sample function (b6e619b)
  • array: remove unconventional function signature (b3ae1fa)

Features

  • regExp: export regExpUnion function (19aca51)
  • sort-compare: export sort-compare namespace as Sort (03b5a19)
util - v2.15.1

Published by github-actions[bot] over 3 years ago

2.15.1 (2021-06-13)

Bug Fixes

  • format: stop using regular expressions in capitalize and uncapitalize functions (6da0cf2)
util - v2.15.0

Published by github-actions[bot] over 3 years ago

2.15.0 (2021-06-13)

Bug Fixes

  • set: use 2 type parameters when possible (845a3b4)

Features

  • array: add iterable support to reverse function (b4c54f4)
  • array: add largeToSmall function (c33ed09)
  • format: implement Capitalize and Uncapitalize types (9ff58fe)
  • sets: add sets functions (8185720)
  • sort: create Comparable type and use it in sort functions (c81dc19)
  • sort: export CompareFn type (f0a8890)
util - v2.14.0

Published by github-actions[bot] over 3 years ago

2.14.0 (2021-06-01)

Features

  • array: add duplicates function (c2a9041)
util - v2.13.0

Published by github-actions[bot] over 3 years ago

2.13.0 (2021-05-31)

Features

  • http: add Http.Status and Http.Method (25eba53)
util - v2.12.0

Published by github-actions[bot] over 3 years ago

2.12.0 (2021-05-27)

Features

  • array: add NonEmptyArray type (1c97921)
  • regExp: add regExpUnion function (322119a)

Performance Improvements

  • identical: use a single parameter in identical (1f90901)
util - v2.11.0

Published by github-actions[bot] over 3 years ago

2.11.0 (2021-05-26)

Features

  • curry: add not function (8fb7520)

Performance Improvements

  • identical: reduce number of iterations in identical (7edb405)
util - v2.10.2

Published by github-actions[bot] over 3 years ago

2.10.2 (2021-04-25)

Bug Fixes

  • identical: fix identicalManual returning true for Maps with undefined values (b6accab)

Performance Improvements

  • format: set default suffix in parameter (020ca2c)
util - v2.10.1

Published by github-actions[bot] over 3 years ago

2.10.1 (2021-04-23)

Bug Fixes

  • array: type sample as readonly (a888adc)
util - v2.10.0

Published by github-actions[bot] over 3 years ago

2.10.0 (2021-04-19)

Features

  • array: add first function (3c3ba55)
  • array: add partition function (49079cc)

Performance Improvements

  • array: remove unnecessary array access from partition (0e51254)
Package Rankings
Top 5.72% on Npmjs.org