-
> Decorator is a JavaScript function (recommended pure function) which is used to modify class properties/methods or class itself. When you add @decoratorFunction syntax on the top of class property, …
-
-
While the `class` keyword might be new in ES6, the concept of classes, inheritance, and privacy has been tackled in a myriad of ways. This talk will cover what options are available now, how you might…
-
replace it with es7
-
Some good article
-
**REPL**
> REPL,即 Read-Eval-Print-Loop,可以理解为即时代码解释器
安装 Pry
```
gem install pry
pry
```
安装 NodeJS
```
npm install -g n
n latest
node
```
**数据类型**
Ruby 语言常见的数据类型有 `Fixnum`,`S…
ghost updated
7 years ago
-
## ES6 等等
![](https://user-gold-cdn.xitu.io/2020/3/15/170de4be1318de5e?imageView2/0/w/1280/h/960/format/webp/ignore-error/1)
**ES6**是ECMA为JavaScript制定的第6个标准版本,相关历史可查看此章节《ES6-ECMAScript6简介》。
标准委…
-
A 1-LOC script npm package mandates more a > 1 line readme
-
### 理解 async/await
可以直接参考:[理解 async/await](https://segmentfault.com/a/1190000010244279)
ES7 提出的 async 函数,终于让 JavaScript 对于异步操作有了终极解决方案(No more callback hell
Async 函数的改进在于下面四点:
- **内置执行器** Ge…
-
Unfinished part of #1553
these syntax shoudn't work:
- `1_2___3;` (only one `_` allowed , e.g.:`1_2_3`)
- `await a = b;` (await expression can't be lvalue)
- `var [...a,...b] = c;` (array …
ghost updated
4 years ago