Make sorting/limit more resilient in repository
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@welshman/lib",
|
||||
"version": "0.6.2",
|
||||
"version": "0.6.3",
|
||||
"author": "hodlbod",
|
||||
"license": "MIT",
|
||||
"description": "A collection of utilities.",
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user