feat: relation field and picker
This commit is contained in:
1 parent
b45c99be3b
commit
37a77c9c22
92 files changed
+6826
-80
No files matched your search
@@ -57,3 +57,13 @@ export function freeSentinel(taken: string[], base = '__none__') {
|
||||
}
|
||||
return sentinel
|
||||
}
|
||||
|
||||
export function sameValue(left: unknown, right: unknown) {
|
||||
if (Array.isArray(left) && Array.isArray(right)) {
|
||||
return (
|
||||
left.length === right.length &&
|
||||
left.every((item, index) => Object.is(item, right[index]))
|
||||
)
|
||||
}
|
||||
return Object.is(left, right)
|
||||
}
|
||||
Reference in new issue
Block a user