Move bool/int conversion utils to shared

This commit is contained in:
Vortrex
2022-01-09 05:27:44 -06:00
parent 290b512252
commit 2d833d00c3

View File

@@ -866,3 +866,15 @@ function splitArrayIntoChunks(originalArray, perChunk) {
}
// ===========================================================================
function intToBool(intVal) {
return (intVal == 1) ? true : false;
}
// ===========================================================================
function boolToInt(boolVal) {
return (boolVal) ? 1 : 0;
}
// ===========================================================================