Add specs and decent solution for convert array in js.