mirror of
https://github.com/NeteaseCloudMusicApiEnhanced/api-enhanced.git
synced 2025-10-22 14:43:10 +00:00
7 lines
115 B
JavaScript
7 lines
115 B
JavaScript
module.exports = {
|
|
toBoolean(val) {
|
|
if (val === '') return val
|
|
return val === 'true' || val == '1'
|
|
}
|
|
}
|