JSFiddle - React, Tailwind, and code Playground

by kthornbloom

JavaScript

//you can also rename them as before
myFunc = function({x:newX,y:newY,z:newZ}) {
    console.log(newX,newY,newZ);
};

myFunc({x:10,y:20,z:30}); //10 20 30