Skip to content

Instantly share code, notes, and snippets.

@anton-rudeshko
Last active December 18, 2015 07:59
Show Gist options
  • Save anton-rudeshko/5750814 to your computer and use it in GitHub Desktop.
Save anton-rudeshko/5750814 to your computer and use it in GitHub Desktop.
А как вы инкрементируете версию?
var version = '12.34';
version = (function (major, minor) {return major + '.' + (++minor); }).apply(null, version.split('.'));
console.log(version); // 12.35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment