Update libs/basic/utils.js
parent
91503ff9c5
commit
ee5a1aee1c
|
|
@ -222,6 +222,9 @@ module.exports = (processCwd,config) => {
|
|||
|
||||
return s;
|
||||
}
|
||||
function roundNearest5(num) {
|
||||
return Math.round(num / 5) * 5;
|
||||
}
|
||||
return {
|
||||
parseJSON: parseJSON,
|
||||
stringJSON: stringJSON,
|
||||
|
|
@ -242,5 +245,6 @@ module.exports = (processCwd,config) => {
|
|||
asyncSetTimeout: asyncSetTimeout,
|
||||
copyFile: copyFile,
|
||||
hmsToSeconds,
|
||||
roundNearest5,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue