DEV Community

Discussion on: Functional style programming is awesome (isomorphic example)

Collapse
 
jefftian profile image
Jeff

Wow that's quite a flaw! I've fixed in github.com/Jeff-Tian/JobInterviewT..., by change the structure to const structure = s => [...s].map(c => s.indexOf(c)).join('-'). And I've added your test case(github.com/Jeff-Tian/JobInterviewT...), that's awesome, thanks a ton!