function printInstruments({ instruments } ) {
console.log(instruments);
function printSiblings({ siblings: {sisters, brothers}}) {
console.log("Sisters", sisters);
console.log("Brothers", brothers);
// combines parameters into array
splice is an example of where we've seen this before
let arr = 'my dog has fleas'.split(' ');
arr.splice(3, 1, 'trees')
// take an arrray and spread them into arguments
// take an object or array and spread their elements/attributes into another object or array
function multiply(multiplier, ...theArgs) {
return theArgs.map(function(element) {
return multiplier * element
let arr = multiply(2, 1, 2, 3)
instruments: ['bass', 'synth', 'guitar'],
let countryArr = ['USA', 'Canada', 'UK'];
//me[countries] = countryArr;
let newMe = {...me, ...countries}