Change Log
0.19.3
Patch Changes
- #2956
881f5f323
Thanks @fhuyghe! -capitalize
now accept an empty string and still returns a single typeCapitalize<S>
.
0.19.2
Patch Changes
-
#2881
12351657c
Thanks @jrolfs! - Makepick()
andomit()
work withreadonly
arrays:const o = { a: 1, b: 2, c: 3 };const keys = ['a', 'b'] as const;// This no longer causes a type errorconst picked = pick(o, keys);
0.19.1
Patch Changes
-
#2534
22047c1e
Thanks @jrolfs! - Addis
type guard that supports checking fornumber
,string
, and/orboolean
simultaneously.unknowns; // unknown[];const knowns = uknowns.filter(is(['string', 'number']));knowns; // (string | number)[]
0.19.0
Minor Changes
0.18.0
Minor Changes
df27a982
Thanks @jrolfs! - Add support for invoking debounced function on the leading edge of the specified delay
Patch Changes
0.17.1
Patch Changes
0.17.0
Minor Changes
- #2378
3087c5ae
Thanks @jrolfs! - Updaterandom
to take an optionalround
parameter for producing unrounded numbers (round
defaults totrue
so thatrandom
still returns integers by default)
Patch Changes
- #2378
c900b1c6
Thanks @jrolfs! - FixisString
guard (was narrowing tonumber
incorrectly from copypasta)
0.16.1
Patch Changes
- #2353
021c7d91
Thanks @jrolfs! - Fix copy-pasta typo in the return type ofisString
(it was guardingnumber
instead ofstring
)
0.16.0
Minor Changes
0.15.0
Minor Changes
-
#2204
ea06df2e
Thanks @jrolfs! - AddmapValues
for mapping over object values -
#2204
a344535a
Thanks @jrolfs! - Adduncapitalize
string function
0.14.0
Minor Changes
0.13.0
Minor Changes
-
#2095
a5f1c3ad
Thanks @jrolfs! - Add version ofString.prototype.split
that use template literal type -
#2095
6f157b00
Thanks @jrolfs! - Add aPromise
-baseddebounce
0.12.0
Minor Changes
- #1947
9924631c
Thanks @jrolfs! - AddisFunction
guard andinvoke
helper for conditionally invoking functions
0.11.0
Minor Changes
Patch Changes
0.10.0
Minor Changes
- #1796
686feed1
Thanks @jrolfs! - Add version ofObject.fromEntries
for preserving narrower types when constructing an object ofas const
tuples (more or less the complement to the version ofObject.entries
already in @hover/utilities)
0.9.0
Minor Changes
0.8.0
Minor Changes
-
#1665
026ad6bb
Thanks @jrolfs! - Add a version ofObject.entries
that preserves narrower types in the resulting tuple entriesimport { entries } from '@hover/utilities';const o = { a: 1, b: 2 };Object.entries(o); // -> [string, number][]// vs.entries(o,) // -> ['a' | 'b', number][]``;
0.7.0
Minor Changes
0.6.0
Minor Changes
-
#1390
ed1e1c57
Thanks @jrolfs! - Addcamelize
function for converting string to "camelCase" -
#1390
5624b4a1
Thanks @jrolfs! - Addpascalize
function for formatting strings in "PascalCase"