My code after removing the side-effect any Suggestion?

i have finished the challenge and this is the result

code in gist.github
any Suggestion?

Privacy & Terms