Merge pull request #140 from oBusk/patch-1
Fix broken links to babeljs.io
This commit is contained in:
commit
e40126a669
32
es6.md
32
es6.md
|
@ -30,7 +30,7 @@ const a = 1
|
||||||
```
|
```
|
||||||
|
|
||||||
`let` is the new `var`. Constants work just like `let`, but can't be reassigned.
|
`let` is the new `var`. Constants work just like `let`, but can't be reassigned.
|
||||||
See: [Let and const](http://babeljs.io/docs/learn-es2015/#let-const)
|
See: [Let and const](http://babeljs.io/learn-es2015/#ecmascript-2015-features-let-const)
|
||||||
|
|
||||||
### Backtick strings
|
### Backtick strings
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ world
|
||||||
```
|
```
|
||||||
|
|
||||||
Templates and multiline strings.
|
Templates and multiline strings.
|
||||||
See: [Template strings](http://babeljs.io/docs/learn-es2015/#template-strings)
|
See: [Template strings](http://babeljs.io/learn-es2015/#ecmascript-2015-features-template-strings)
|
||||||
|
|
||||||
### Binary and octal literals
|
### Binary and octal literals
|
||||||
|
|
||||||
|
@ -59,7 +59,7 @@ let bin = 0b1010010
|
||||||
let oct = 0o755
|
let oct = 0o755
|
||||||
```
|
```
|
||||||
|
|
||||||
See: [Binary and octal literals](http://babeljs.io/docs/learn-es2015/#binary-and-octal-literals)
|
See: [Binary and octal literals](http://babeljs.io/learn-es2015/#ecmascript-2015-features-binary-and-octal-literals)
|
||||||
|
|
||||||
### New methods
|
### New methods
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ See: [Binary and octal literals](http://babeljs.io/docs/learn-es2015/#binary-and
|
||||||
"\u1E9B\u0323".normalize("NFC")
|
"\u1E9B\u0323".normalize("NFC")
|
||||||
```
|
```
|
||||||
|
|
||||||
See: [New methods](http://babeljs.io/docs/learn-es2015/#math-number-string-object-apis)
|
See: [New methods](http://babeljs.io/learn-es2015/#ecmascript-2015-features-math-number-string-object-apis)
|
||||||
|
|
||||||
### Classes
|
### Classes
|
||||||
|
|
||||||
|
@ -117,7 +117,7 @@ class Circle extends Shape {
|
||||||
{: data-line="1"}
|
{: data-line="1"}
|
||||||
|
|
||||||
Syntactic sugar for prototypes.
|
Syntactic sugar for prototypes.
|
||||||
See: [Classes](http://babeljs.io/docs/learn-es2015/#classes)
|
See: [Classes](http://babeljs.io/learn-es2015/#ecmascript-2015-features-classes)
|
||||||
|
|
||||||
### Exponent operator
|
### Exponent operator
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ new Promise((resolve, reject) => {
|
||||||
{: data-line="1"}
|
{: data-line="1"}
|
||||||
|
|
||||||
For asynchronous programming.
|
For asynchronous programming.
|
||||||
See: [Promises](http://babeljs.io/docs/learn-es2015/#promises)
|
See: [Promises](http://babeljs.io/learn-es2015/#ecmascript-2015-features-promises)
|
||||||
|
|
||||||
### Using promises
|
### Using promises
|
||||||
|
|
||||||
|
@ -200,7 +200,7 @@ let {title, author} = {
|
||||||
{: data-line="1"}
|
{: data-line="1"}
|
||||||
|
|
||||||
Supports for matching arrays and objects.
|
Supports for matching arrays and objects.
|
||||||
See: [Destructuring](http://babeljs.io/docs/learn-es2015/#destructuring)
|
See: [Destructuring](http://babeljs.io/learn-es2015/#ecmascript-2015-features-destructuring)
|
||||||
|
|
||||||
|
|
||||||
### Function arguments
|
### Function arguments
|
||||||
|
@ -312,7 +312,7 @@ fn(...[1, 2, 3])
|
||||||
{: data-line="1"}
|
{: data-line="1"}
|
||||||
|
|
||||||
Default, rest, spread.
|
Default, rest, spread.
|
||||||
See: [Function arguments](http://babeljs.io/docs/learn-es2015/#default-rest-spread)
|
See: [Function arguments](http://babeljs.io/learn-es2015/#ecmascript-2015-features-default-rest-spread)
|
||||||
|
|
||||||
### Fat arrows
|
### Fat arrows
|
||||||
|
|
||||||
|
@ -343,7 +343,7 @@ numbers.map(n => n * 2)
|
||||||
{: data-line="1"}
|
{: data-line="1"}
|
||||||
|
|
||||||
Like functions but with `this` preserved.
|
Like functions but with `this` preserved.
|
||||||
See: [Fat arrows](http://babeljs.io/docs/learn-es2015/#arrows)
|
See: [Fat arrows](http://babeljs.io/learn-es2015/#ecmascript-2015-features-arrows-and-lexical-this)
|
||||||
|
|
||||||
Objects
|
Objects
|
||||||
-------
|
-------
|
||||||
|
@ -369,7 +369,7 @@ const App = {
|
||||||
```
|
```
|
||||||
{: data-line="2"}
|
{: data-line="2"}
|
||||||
|
|
||||||
See: [Object literal enhancements](http://babeljs.io/docs/learn-es2015/#enhanced-object-literals)
|
See: [Object literal enhancements](http://babeljs.io/learn-es2015/#ecmascript-2015-features-enhanced-object-literals)
|
||||||
|
|
||||||
### Getters and setters
|
### Getters and setters
|
||||||
|
|
||||||
|
@ -385,7 +385,7 @@ const App = {
|
||||||
```
|
```
|
||||||
{: data-line="2,5"}
|
{: data-line="2,5"}
|
||||||
|
|
||||||
See: [Object literal enhancements](http://babeljs.io/docs/learn-es2015/#enhanced-object-literals)
|
See: [Object literal enhancements](http://babeljs.io/learn-es2015/#ecmascript-2015-features-enhanced-object-literals)
|
||||||
|
|
||||||
### Computed property names
|
### Computed property names
|
||||||
|
|
||||||
|
@ -398,7 +398,7 @@ let handlers = {
|
||||||
```
|
```
|
||||||
{: data-line="3"}
|
{: data-line="3"}
|
||||||
|
|
||||||
See: [Object literal enhancements](http://babeljs.io/docs/learn-es2015/#enhanced-object-literals)
|
See: [Object literal enhancements](http://babeljs.io/learn-es2015/#ecmascript-2015-features-enhanced-object-literals)
|
||||||
|
|
||||||
Modules
|
Modules
|
||||||
-------
|
-------
|
||||||
|
@ -431,7 +431,7 @@ import { indentSpaces as indent } from 'helpers'
|
||||||
```
|
```
|
||||||
|
|
||||||
`import` is the new `require()`.
|
`import` is the new `require()`.
|
||||||
See: [Module imports](http://babeljs.io/docs/learn-es2015/#modules)
|
See: [Module imports](http://babeljs.io/learn-es2015/#ecmascript-2015-features-modules)
|
||||||
|
|
||||||
### Exports
|
### Exports
|
||||||
|
|
||||||
|
@ -451,7 +451,7 @@ export const pi = 3.14159
|
||||||
```
|
```
|
||||||
|
|
||||||
`export` is the new `module.exports`.
|
`export` is the new `module.exports`.
|
||||||
See: [Module exports](http://babeljs.io/docs/learn-es2015/#modules)
|
See: [Module exports](http://babeljs.io/learn-es2015/#ecmascript-2015-features-modules)
|
||||||
|
|
||||||
Generators
|
Generators
|
||||||
----------
|
----------
|
||||||
|
@ -473,7 +473,7 @@ gen.next().value // → 2
|
||||||
```
|
```
|
||||||
|
|
||||||
It's complicated.
|
It's complicated.
|
||||||
See: [Generators](http://babeljs.io/docs/learn-es2015/#generators)
|
See: [Generators](http://babeljs.io/learn-es2015/#ecmascript-2015-features-generators)
|
||||||
|
|
||||||
### For..of iteration
|
### For..of iteration
|
||||||
|
|
||||||
|
@ -484,4 +484,4 @@ for (let i of iterable) {
|
||||||
```
|
```
|
||||||
|
|
||||||
For iterating through generators and arrays.
|
For iterating through generators and arrays.
|
||||||
See: [For..of iteration](http://babeljs.io/docs/learn-es2015/#iterators-for-of)
|
See: [For..of iteration](http://babeljs.io/learn-es2015/#ecmascript-2015-features-iterators-for-of)
|
||||||
|
|
Loading…
Reference in New Issue