/
githubmirror
/
babel
Обзор
Документация
Войти
/
githubmirror
/
babel
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/babel-plugin-transform-destructuring/test/fixtures/destructuring/parameters/input.js
15 строк
395 B
Raja Sekar
Renamed files
09 янв 2018, 17:36
09 янв 2018, 17:36
0f42acc
Код
Авторство
О чём код?
function somethingAdvanced({topLeft: {x: x1, y: y1} = {}, bottomRight: {x: x2, y: y2} = {}}, p2, p3){ } function unpackObject({title: title, author: author}) { return title + " " + author; } console.log(unpackObject({title: "title", author: "author"})); var unpackArray = function ([a, b, c], [x, y, z]) { return a+b+c; }; console.log(unpackArray(["hello", ", ", "world"], [1, 2, 3]));