mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
@@ -35,12 +35,15 @@
|
||||
<li><a href="https://github.com/sebmarkbage/ecmascript-rest-spread">Rest Params</a>: <code>function(type, ...args) { }</code></li>
|
||||
<li><a href="http://babeljs.io/docs/learn-es2015/#template-strings">Template Literals</a>: <code>var who = 'world'; var str = `Hello ${who}`;</code></li>
|
||||
</ul>
|
||||
<p>ES7</p>
|
||||
<p>ES8</p>
|
||||
<ul>
|
||||
<li><a href="https://github.com/sebmarkbage/ecmascript-rest-spread">Object Spread</a>: <code>var extended = { ...obj, a: 10 };</code></li>
|
||||
<li><a href="https://github.com/jeffmo/es-trailing-function-commas">Function Trailing Comma</a>: <code>function f(a, b, c,) { }</code></li>
|
||||
<li><a href="https://github.com/tc39/ecmascript-asyncawait">Async Functions</a>: <code>async function doStuffAsync() { const foo = await doOtherStuffAsync(); }</code>;</li>
|
||||
</ul>
|
||||
<p>Stage 3</p>
|
||||
<ul>
|
||||
<li><a href="https://github.com/sebmarkbage/ecmascript-rest-spread">Object Spread</a>: <code>var extended = { ...obj, a: 10 };</code></li>
|
||||
</ul>
|
||||
<p>Specific</p>
|
||||
<ul>
|
||||
<li><a href="https://facebook.github.io/react/jsx-in-depth.md">JSX</a>: <code><View style={{color: 'red'}} /></code></li>
|
||||
@@ -59,12 +62,16 @@
|
||||
<p>ES6</p>
|
||||
<ul>
|
||||
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/assign">Object.assign</a></li>
|
||||
<li>String.prototype.{<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith">startsWith</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith">endsWith</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeats">repeat</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes">includes</a>}</li>
|
||||
<li>String.prototype.{<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith">startsWith</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith">endsWith</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat">repeat</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes">includes</a>}</li>
|
||||
<li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from">Array.from</a></li>
|
||||
<li>Array.prototype.{<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find">find</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex">findIndex</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes">includes</a>}</li>
|
||||
<li>Array.prototype.{<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find">find</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/findIndex">findIndex</a>}</li>
|
||||
</ul>
|
||||
<p>ES7</p>
|
||||
<ul>
|
||||
<li>Array.prototype.{<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes">includes</a>}</li>
|
||||
</ul>
|
||||
<p>ES8</p>
|
||||
<ul>
|
||||
<li>Object.{<a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries">entries</a>, <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/values">values</a>}</li>
|
||||
</ul>
|
||||
<p>Specific</p>
|
||||
|
||||
Reference in New Issue
Block a user