Remove incorrect docs. #5580

This commit is contained in:
Sven SAULEAU 2017-04-08 10:13:47 +02:00
parent d40cb31685
commit 149acc40bd
No known key found for this signature in database
GPG Key ID: 7C3212582FBA1BA2

View File

@ -9,31 +9,13 @@
```js
var a = ['a', 'b', 'c'];
var b = [...a, 'foo'];
var c = { foo: 'bar', baz: 42 };
var d = {...c, a: 2};
```
**Out**
```js
var _extends = Object.assign || function (target) {
for (var i = 1; i < arguments.length; i++) {
var source = arguments[i];
for (var key in source) {
if (Object.prototype.hasOwnProperty.call(source, key)) {
target[key] = source[key];
}
}
}
return target;
}
var a = [ 'a', 'b', 'c' ];
var b = [].concat(a, [ 'foo' ]);
var c = { foo: 'bar', baz: 42 };
var d = _extends({}, c, { a: 2 });
```
## Installation