Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Nice!
This one has me a little confused. How do we pass in the val parameter for this one?
1 - The function will be constant and will not change in future uses.
2 - Avoid a new assignment to the variable due to an error in the programming.
What is the reason for the const declaration here?
Much appreciated!
Huh, what an interesting way to declare a local variable in the arguments. Cool :).
Done the first thing.
The other, probably you are right. If the action is not performed, it would be pointless to logged it.
But this would force me to rethink the whole kata and check that the property is wirtable; that the object has not been frozen, etc.. Maybe I prepare another kata incorporating this idea.
Thanks for your comment.
A nice one.
"unRe.hasOwnProperty"should be replaced with "obj.hasOwnProperty" in Test Cases.
And should the action be logged when nothing is done? e.g. var foo='bar';undoRedo(window).del('foo');