Bump versions

This commit is contained in:
Jon Staab
2025-02-10 16:35:58 -08:00
parent 8114206308
commit eb354b4330
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/lib",
"version": "0.0.40",
"version": "0.0.41",
"author": "hodlbod",
"license": "MIT",
"description": "A collection of utilities.",
+1 -1
View File
@@ -113,7 +113,7 @@ export const max = (xs: Maybe<number>[]) => xs.reduce((a: number, b) => Math.max
/** Returns minimum value in array, handling undefined values */
export const min = (xs: Maybe<number>[]) => {
const [head, ...tail] = xs.filter(x => !isNil(x))
const [head, ...tail] = xs.filter(x => !isNil(x)) as number[]
if (tail.length === 0) return head || 0