12 lines
242 B
JavaScript
12 lines
242 B
JavaScript
|
function rebaseFrom(rebaseOption, rebaseToOption) {
|
||
|
if (undefined !== rebaseToOption) {
|
||
|
return true;
|
||
|
} else if (undefined === rebaseOption) {
|
||
|
return false;
|
||
|
} else {
|
||
|
return !!rebaseOption;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = rebaseFrom;
|