JavaScript's functional programming is initially very attractive, but if you slide into using it, you might be shocked at how difficult it is to be "hardline functional". This is an extract from my ...