Sorry to point out but writing small - small functions is not all together functional. You can try lodash flow to compose camelCaseString using those small functions, that would be functional approach -> , "Composition".
Hi Pradosh - Good to know about lodash and flow, I wasn’t familiar with those! However, in this case as it was an interview challenge I wasn’t allowed to use any third party utility methods, but to solve it by myself. 😅
Sorry to point out but writing small - small functions is not all together functional. You can try lodash
flow
to composecamelCaseString
using those small functions, that would be functional approach -> , "Composition".Now I see what you meant following the book that Bryce suggested below: mostly-adequate.gitbooks.io/mostly...
Thanks Pradosh!
Hi Pradosh - Good to know about lodash and flow, I wasn’t familiar with those! However, in this case as it was an interview challenge I wasn’t allowed to use any third party utility methods, but to solve it by myself. 😅
Oh Okay, you know you can implement something like flow, this is just POC and not tested either
This is really cool! Thanks for sharing! 💪🏽💪🏽