Merge pull request #802 from CyberMew/patch-4

Update solution.js
This commit is contained in:
Ilya Kantor 2019-02-13 13:09:33 +03:00 committed by GitHub
commit 9a21e07fba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,7 +3,7 @@ function topSalary(salaries) {
let max = 0;
let maxName = null;
for(let [name, salary] of Object.entries(salaries)) {
for(const [name, salary] of Object.entries(salaries)) {
if (max < salary) {
max = salary;
maxName = name;