Probably what lint wants you to do here is:

if (newKeyVals.hasOwnProperty(key)).