Make sorting/limit more resilient in repository

This commit is contained in:
Jon Staab
2025-10-28 13:23:25 -07:00
parent 8b8e3a6a51
commit 3132b8c59a
15 changed files with 16 additions and 24 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@welshman/lib",
"version": "0.6.2",
"version": "0.6.3",
"author": "hodlbod",
"license": "MIT",
"description": "A collection of utilities.",
+3 -3
View File
@@ -1517,9 +1517,9 @@ export const prop =
/** Returns a function that adds/updates a property on object */
export const assoc =
<K extends string, T, U>(k: K, v: T) =>
(o: U) =>
({...o, [k as K]: v}) as U & Record<K, T>
<K extends string, T>(k: K, v: T) =>
<U>(o: U): U =>
({...o, [k]: v}) as U
/** Returns a function that removes a property on object */
export const dissoc =