mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-12 07:32:34 +01:00
This commit is contained in:
parent
c9887449b1
commit
a6f82f2901
4 changed files with 155 additions and 34 deletions
|
|
@ -2,6 +2,10 @@ export const isMobile = () => {
|
|||
return !document.getElementById("dockBottom");
|
||||
};
|
||||
|
||||
export const isArrayEqual = (arr1: string[], arr2: string[]) => {
|
||||
return arr1.length === arr2.length && arr1.every((item) => arr2.includes(item));
|
||||
}
|
||||
|
||||
export const getRandom = (min: number, max: number) => {
|
||||
return Math.floor(Math.random() * (max - min + 1)) + min; //含最大值,含最小值
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue