Формат числа в имени плейлиста #196
Answered
by
Chimildic
Bondian
asked this question in
Помощь с алгоритмом
Replies: 1 comment 1 reply
-
Playlist.saveWithReplace({
name: `${tracks.length.toString().padStart(3, '0')} треков`,
tracks: tracks,
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Bondian
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Как форматнуть количество треков в имени плейлиста, чтобы получалось имя файла "009 треков" вместо "9 треков"?
Beta Was this translation helpful? Give feedback.
All reactions