Answers for "js-destructuring"

0

js-destructuring

const getTemperature = (atticData) => atticData?.celsius ?? 15;
// insted do
const getTemperature = ({ celsius = 15 } = {}) => celsius;

// https://realworldjs.medium.com/never-use-the-dot-operator-in-javascript-ee0339d85fb
Posted by: Guest on September-30-2021
0

js-destructuring

const getTemperature = ({ celsius = 15 } = {}) => celsius;
Posted by: Guest on September-30-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language