Functional-oriented utility helper library taken from asteroids for node and browsers