mirror of
https://github.com/ful1e5/apple_cursor.git
synced 2025-05-20 10:15:19 -04:00
🔢 frame number utils
This commit is contained in:
parent
08ff1b7ab5
commit
561fdbca19
1 changed files with 7 additions and 0 deletions
7
src/utils/getFrameNumber.ts
Normal file
7
src/utils/getFrameNumber.ts
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
export const getFrameNumber = (number: number, length: number) => {
|
||||||
|
var str = "" + number;
|
||||||
|
while (str.length < length) {
|
||||||
|
str = "0" + str;
|
||||||
|
}
|
||||||
|
return str;
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue