mirror of
https://github.com/zkldi/Tachi.git
synced 2026-09-30 02:48:01 +03:00
12 lines
449 B
JavaScript
12 lines
449 B
JavaScript
function FindChartWithPTDFVersion(collection, songID, playtype, difficulty, version) {
|
|
return collection.find(chart => chart.songID === songID && chart.playtype === playtype && chart.difficulty === difficulty && chart.versions.includes(version));
|
|
}
|
|
|
|
function FindSongWithTitle(collection, title) {
|
|
return collection.find(e => e.title === title || e.altTitles.includes(title));
|
|
}
|
|
|
|
module.exports = {
|
|
FindSongWithTitle,
|
|
FindChartWithPTDFVersion,
|
|
} |