babel-plugin-transform-ternary-to-if-else
code
idle
Click to transform
Input
var a = a1 ? a2 : a3;
output