I'm using UAParser to get the OS version the user has, for example:
function osCheck() {
  var parser = new UAParser();
  return {
    name: parser.getOS().name,
    version: parser.getOS().version
  }
}
This gives me back 10.11.3 for example:
var osVersion = osCheck().version;
I then want to add a conditional to check whether is more than 10.11 taking into account the variable could have double decimals like 10.11.3 what's the best way to do this?