solve functional-js 14