▲ The Most Clever Line of JavaScript at blog.bloomca.me▼12 up and 1 down, posted by bloomca 2564 days ago 4 comments
sylvainpv 2563 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
bigopon 2563 days ago. link 3 points ▲ ▼Thanks. Reminds me to not try to be smart with my code too much. Just frustration for any maintainer