DEV Community

Discussion on: JavaScript Katas: Higher Version

Collapse
 
totally_chase profile image
Phantz • Edited

would Number(version1.split('.').join('')) > Number(version2.split('.').join('')) be enough or are there cases where it doesn't work?