Use _.chain method for more straightforward reading of solution to problem1 in javascript