const parseGroupParameterReducer = ( key , value , vertexIndex ) : any => { switch ( key ) { case "round" : if ( typeof value === "object" && value . length > 2 ) value = value [ vertexIndex ] ; if ( typeof value === "number" ) value = [ value , value ] ; break ; default : break ; } return value ; } ; export default parseGroupParameterReducer ;