var cas_place = { monitor:[2,3], router:[1,5], mfu:[1,3] }; let factor = 10 for (let key in cas_place) { if (Array.isArray(cas_place[key])) { cas_place[key] = cas_place[key].map(n => ~~n === n ? n * factor : n) } } alert(JSON.stringify(cas_place))