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 - v8.4.1

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

8.4.1 (2021-10-24)

Bug Fixes

  • object: fix export for name function (3d21df5)
util - v8.4.0

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

8.4.0 (2021-10-24)

Features

  • object: add name function (7fe35ea)
util - v8.3.0

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

8.3.0 (2021-10-24)

Features

  • types: add UnknownFunction type (748ecd1)
util - v8.2.1

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

8.2.1 (2021-10-18)

Bug Fixes

  • typed-event-emitter: fix typings on older versions of @types/node (161ba62)
util - v8.2.0

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

8.2.0 (2021-10-17)

Features

  • iterable: improve type guard for isEmpty function (04608a7)
util - v8.1.1

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

8.1.1 (2021-10-12)

Bug Fixes

  • http: fix namespace export (03d4bf6)
util - v8.1.0

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

8.1.0 (2021-10-09)

Features

  • math: broaden types for median function (472875c)
  • use API extractor for safer releases (d065536)
  • types: add Percentage type (b7cfb06)
util - v8.0.1

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

8.0.1 (2021-09-12)

Bug Fixes

  • promise: loosen parameter types (9f8d6f0)

Performance Improvements

  • set package as side effect free (9ca28b1)
util - v8.0.0

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

8.0.0 (2021-09-12)

Features

  • use ArrayLike and Iterable in more places (4be98c4)
  • array: add findIndexAll function (9bf57be)
  • array: add pullAll function (a190c96)
  • higher-order: add thunkify function (e322aab)
  • higher-order: use NumberLike as return type of the input for the invert function (a8090d2)
  • iterable: rewrite count function (093d93a)
  • promise: add timeout function (1bd2bdf)
  • range: add Range#equals function (623fb9b)
  • range: add Range#intersects function (c03fcf3)
  • range: add Range#isSubrange function (53549d0)
  • range: add Range#isSuperrange function (31c015c)
  • sort: add isSorted function (7e7ebee)
  • string: add isWhitespace function (38a987a)
  • types: add NumberLike type and expand Comparable types (66d6ea5)

Performance Improvements

  • set: optimize functions when given the same object twice (fef8aaf)

BREAKING CHANGES

  • iterable: The count function now returns the number of elements in an iterable
util - v7.2.0

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

7.2.0 (2021-08-23)

Features

  • iterable: add isEmpty function (aca0812)
  • math: add relativeStddev function (8382e82)
util - v7.1.0

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

7.1.0 (2021-08-23)

Features

  • improve type parameters (d913c80)
  • array: add indexOfAll function (f96fbdd)
  • array: add replace function (758ee83)
  • array: add replaceAll function (9727092)
  • auto-percentage: add AutoPercentage class (7b5a9ce)
  • http: add StatusRange namespace (7ea73fe)
  • iterable: support passing a type guard to partition function (c7e49b3)
  • string: add isAnagram function (7dea3dd)
util - v7.0.1

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

7.0.1 (2021-08-11)

Bug Fixes

util - v7.0.0

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

7.0.0 (2021-08-11)

Features

  • identical: throw if identical function receives bad input (a038c9e)
  • iterable: return iterable instead of array in first function (2a743e3)

BREAKING CHANGES

  • identical: The identical function now throws a RangeError if both parameters are not a valid type and the same type.
  • iterable: The first function now returns an iterable instead of an array. If you need an array replace its usage with [...first(iterable, n)].
util - v6.0.2

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

6.0.2 (2021-08-11)

Performance Improvements

  • set: optimize isDisjoint function when a parameter is a Set (ee338e2)
  • set: refactor union function to optimize iterations (196a988)
util - v6.0.1

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

6.0.1 (2021-08-10)

Performance Improvements

  • iterable: increase performance of functions that use Sets (e53e50a)
util - v6.0.0

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

6.0.0 (2021-08-10)

Features

  • array: reorder arguments of fill function (a10af64)
  • array: reorder arguments of mapFill function (ec4ec33)
  • iterable: return iterable from cycle function (dba9721)

BREAKING CHANGES

  • iterable: The cycle function now returns an iterable instead of an array. Use [...cycle(iterable)] instead of cycle(iterable) if you need an array.
  • array: The order of the arguments for the mapFill function have been swapped.
  • array: The order of the arguments for the fill function have been swapped.
util - v5.1.0

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

5.1.0 (2021-08-10)

Features

  • iterable: add mapRepeat function (47d8bc3)
  • iterable: add repeat function (7bc3b8e)
  • range: make Range iterable (cfc0b1c)
  • string: add lines function (9bbd4bf)

Performance Improvements

  • array: use faster implementation of padStart and padEnd functions (d71c777)
util - v5.0.0

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

5.0.0 (2021-08-08)

Features

  • array: remove reverse function (37be707)

BREAKING CHANGES

  • array: The reverse function has been removed. Replace its usage with [...iterable].reverse().
util - v4.5.0

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

4.5.0 (2021-08-08)

Bug Fixes

  • reducers: improve type signature of max and min functions (0633d52)

Features

  • array: add padEnd function (4adb3f1)
  • array: add padStart function (f18ec27)
  • iterable: add count function (81c51db)
  • iterable: add cycle function (924e0e7)
  • reducers: add product function (67c5207)
  • reducers: add bitwise AND, OR, and XOR functions (e93a5da)
  • reducers: refactor max function to support Comparables (30a7811)
  • reducers: refactor min function to support Comparables (09da163)
util - v4.4.0

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

4.4.0 (2021-08-07)

Bug Fixes

  • types: fix AnyFunction type (dac556b)

Features

  • array: add fill function (e8a4973)
  • array: add mapFill function (3a3466a)
  • default-map: add DefaultMap class (01a4f85)
  • types: add AnyFunction type (aae934c)
Package Rankings
Top 5.72% on Npmjs.org