mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 23:14:07 +01:00
🚨
This commit is contained in:
parent
829b7d40d4
commit
6b4af527e1
4 changed files with 26 additions and 26 deletions
|
|
@ -4,7 +4,7 @@ export const isMobile = () => {
|
|||
|
||||
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