编程语言:JavaScript
关联话题: JS
Even with async/await, raw promises are still key to writing optimal concurrent javascript
With es2017, async/await is just around the corner. In a previous article I recommended getting fully to grips with promises, since they’re…
一些小技巧让JS代码更优雅
今天翻了翻一年多前写的代码,感觉当年年轻的自己写下的代码真是图样啊(然而现在也没好到哪里去 /w\)。近期看了好多函数式编程以及设计模式的书和文章,于是想分享一些让JS代码更优雅的小技巧。 一、善用函数式…