File tree 2 files changed +6
-5
lines changed
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 3
3
4
4
### Usage
5
5
6
- If you want to make sure your environment implements ` Map ` , do :
6
+ It’s safest to use * es6-map * as a [ ponyfill ] ( http://kikobeats.com/polyfill-ponyfill-and-prollyfill/ ) – a polyfill which doesn’t touch global objects :
7
7
8
8
``` javascript
9
- require (' es6-map/implement ' );
9
+ var Map = require (' es6-map' );
10
10
```
11
11
12
- If you'd like to use native version when it exists and fallback to polyfill if it doesn't, but without implementing ` Map ` on global scope , do:
12
+ If you want to make sure your environment implements ` Map ` globally , do:
13
13
14
14
``` javascript
15
- var Map = require (' es6-map' );
15
+ require (' es6-map/implement ' );
16
16
```
17
17
18
- If you strictly want to use polyfill even if native ` Map ` exists, do:
18
+ If you strictly want to use the polyfill even if the native ` Map ` exists, do:
19
19
20
20
``` javascript
21
21
var Map = require (' es6-map/polyfill' );
Original file line number Diff line number Diff line change 12
12
" hash" ,
13
13
" map" ,
14
14
" polyfill" ,
15
+ " ponyfill" ,
15
16
" ecmascript"
16
17
],
17
18
"repository" : {
You can’t perform that action at this time.
0 commit comments