Skip to content

Instantly share code, notes, and snippets.

const request = {
volume: 0
};
const volume = request.volume ?? 1;
console.log(volume);
// 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment