mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 23:49:02 +01:00
Merged with main
This commit is contained in:
commit
ccba480250
26 changed files with 437 additions and 251 deletions
|
|
@ -241,3 +241,9 @@ export const itemAbleRollParse = (value, actor, item) => {
|
|||
return '';
|
||||
}
|
||||
};
|
||||
|
||||
export const arraysEqual = (a, b) =>
|
||||
a.length === b.length &&
|
||||
[...new Set([...a, ...b])].every(v => a.filter(e => e === v).length === b.filter(e => e === v).length);
|
||||
|
||||
export const setsEqual = (a, b) => a.size === b.size && [...a].every(value => b.has(value));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue