del: useless variable (#1198)

* del: useless variable

* fix: comment

Co-authored-by: 魏银鹏 <weiyinpeng@weiyinpengdeMacBook-Pro.local>
This commit is contained in:
銀桑
2020-09-02 18:02:42 +08:00
committed by GitHub
parent a4344f06bd
commit d9c8306478

View File

@ -13,5 +13,5 @@ const cloneRegExp = regExp => new RegExp(regExp.source, regExp.flags);
```js
const regExp = /lorem ipsum/gi;
const regExp2 = cloneRegExp(regExp); // /lorem ipsum/gi
const regExp2 = cloneRegExp(regExp); // regExp !== regExp2
```