Open Emperor01 opened 6 years ago
'use strict';
function isEmptyObj(obj) {
for (var key in obj) { return false; }
return true; }
function getBiggestSalary(obj) {
if (isEmptyObj(obj)) return 0;
var topSalary = 0;
for (var prop in obj) { topSalary = (obj[prop] > topSalary) ? obj[prop] : topSalary; }
return topSalary; }
'use strict';
function isEmptyObj(obj) {
for (var key in obj) { return false; }
return true; }
function getBiggestSalary(obj) {
if (isEmptyObj(obj)) return 0;
var topSalary = 0;
for (var prop in obj) { topSalary = (obj[prop] > topSalary) ? obj[prop] : topSalary; }
return topSalary; }