We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2253eff commit 74d46fdCopy full SHA for 74d46fd
Sprint-2/interpret/invert.js
@@ -38,7 +38,7 @@ module.exports = invert;
38
// It is needed to iterate over each key-value pair in the input object.
39
40
// d) Explain why the current return value is different from the target output
41
-// Numeric key values are converted to strings in the output object keys.
+// They are the same. Object keys are always strings, so the functions converts values into string keys and assigns the original key as the new value.
42
43
// e) Fix the implementation of invert (and write tests to prove it's fixed!)
44
// Invert function passes 4 edge case tests.
0 commit comments