code: function version(str) {
    var v = String(str).match(/^(\d+)\.(\d+)\.(\d+)/); // very strict
    if (!v || v.length !== 4) {
      return false;
    }
    return v.slice(1).map(function (n) {
      return parseInt(n, 10);
    });
  }
docs: parsers