| 1 |
function somethingAdvanced(_ref, p2, p3) { |
| 2 |
var _ref$topLeft = _ref.topLeft, |
| 3 |
_ref$topLeft2 = _ref$topLeft === void 0 ? {} : _ref$topLeft, |
| 4 |
x1 = _ref$topLeft2.x, |
| 5 |
y1 = _ref$topLeft2.y, |
| 6 |
_ref$bottomRight = _ref.bottomRight, |
| 7 |
_ref$bottomRight2 = _ref$bottomRight === void 0 ? {} : _ref$bottomRight, |
| 8 |
x2 = _ref$bottomRight2.x, |
| 9 |
y2 = _ref$bottomRight2.y; |
| 10 |
} |
| 11 |
function unpackObject(_ref2) { |
| 12 |
var title = _ref2.title, |
| 13 |
author = _ref2.author; |
| 14 |
return title + " " + author; |
| 15 |
} |
| 16 |
console.log(unpackObject({ |
| 17 |
title: "title", |
| 18 |
author: "author" |
| 19 |
})); |
| 20 |
var unpackArray = function (_ref3, _ref4) { |
| 21 |
var _ref5 = babelHelpers.slicedToArray(_ref3, 3), |
| 22 |
a = _ref5[0], |
| 23 |
b = _ref5[1], |
| 24 |
c = _ref5[2]; |
| 25 |
var _ref6 = babelHelpers.slicedToArray(_ref4, 3), |
| 26 |
x = _ref6[0], |
| 27 |
y = _ref6[1], |
| 28 |
z = _ref6[2]; |
| 29 |
return a + b + c; |
| 30 |
}; |
| 31 |
console.log(unpackArray(["hello", ", ", "world"], [1, 2, 3])); |