7 kyu
Get the lost toString back
523 of 524BruceLee
Description:
There are some functions whose toString
methods have been modified.
function foo() {}
foo.toString = function() {
return 'blablabla';
};
Write a function _originalToString
which takes a function as the argument, and returns a string which is as same as the argument's original toString
's.
Note: You should not change the argument.
For example, the following statement should return function foo() {}
instead of blablabla
:
_originalToString(foo); // function foo() {}
Fundamentals
Similar Kata:
Stats:
Created | Oct 11, 2015 |
Published | Oct 11, 2015 |
Warriors Trained | 1340 |
Total Skips | 59 |
Total Code Submissions | 3591 |
Total Times Completed | 524 |
JavaScript Completions | 523 |
Total Stars | 32 |
% of votes with a positive feedback rating | 78% of 110 |
Total "Very Satisfied" Votes | 77 |
Total "Somewhat Satisfied" Votes | 18 |
Total "Not Satisfied" Votes | 15 |