▲ The Most Clever Line of JavaScript at blog.bloomca.me▼12 up and 1 down, posted by bloomca 2571 days ago 4 comments
sylvainpv 2571 days ago. link 4 points ▲ ▼My own experience of mind-blowing one line of JavaScript is uncurry = Function.bind.bind(Function.call); Now, the line of code in the article can be replaced by: addressParts.map(uncurry(String.prototype.trim)); It took me hours to figure it out