-
## 前言
我们先从 WeakMap 的特性说起,然后聊聊 WeakMap 的一些应用场景。
## 特性
### 1. WeakMap 只接受对象作为键名
```js
const map = new WeakMap();
map.set(1, 2);
// TypeError: Invalid value used as weak map key
map.set(n…
-
Configurar el código JavaScript de la aplicación de código es5 y modernizar a ES6
-
[https://juejin.cn/post/6844903811622912014#heading-5](url)
-
https://rabbitfeet.net/archives/learning-es6-features
RabbitFeet's Hobby Blog
-
can it also transform cmd to es6?
-
-
So we can now require each function separately without having to include the whole library, this will be helpful to anyone trying to optimize their bundle on the client side, and will make it possible…
-
Thanks for a nice lib!
Seems like the babel transpilation step is not working correctly, should there really be "=>" in the output file?
`./mixwith.js`:
```
const Cached = exports.Cached = mi…
-
Hello, thank you for creating this UMD version.
I'm importing with NuxtJS and I've done the following since NuxtJS is server rendered:
```javascript
// plugins/instascan-umd.js
import InstaScan,{S…
-
template literals are ES6 and don't have full support on all browsers so should only be used in the back end.
https://github.com/facn2/PHS/blob/master/public/script.js#L27
https://github.com/facn2…