klaytonfaria
12/27/2016 - 7:12 PM

range.js


var setMachineHeader = (server, range) => {
	let version = Object.keys(range).filter((k) => {	
            return range[k] == Object.values(range).map((v) => v.split(",")).filter((v) => server >= parseInt(v[0]) && server <= parseInt(v[1]));
        }).toString() || null;	
		
};

setMachineHeader(90, {a:"1,35", b:"36,56", c:"57,70"});