Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- recur = (val) => {
- let temp = {}
- for(const i of Object.keys(val)) {
- temp[i] = typeof val[i]==='object' ? recur(val[i]) : val[i].toLowerCase();
- }
- return temp;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement