HackMD/lib/config/utils.js

9 lines
200 B
JavaScript
Raw Normal View History

'use strict'
exports.toBooleanConfig = function toBooleanConfig (configValue) {
if (configValue && typeof configValue === 'string') {
return (configValue === 'true')
}
return configValue
}