export function parseVersion ( version ) { var arr = version . split ( '.' ) ; var major = parseInt ( arr [ 0 ] ) || 0 ; var minor = parseInt ( arr [ 1 ] ) || 0 ; var patch = parseInt ( arr [ 2 ] ) || 0 ; return { major , minor , patch , } ; }