Skip to content

Instantly share code, notes, and snippets.

@indreklasn
Created August 5, 2019 11:08
Show Gist options
  • Save indreklasn/8aafe60dc6a0e3b3b50eeb8916ae2c97 to your computer and use it in GitHub Desktop.
Save indreklasn/8aafe60dc6a0e3b3b50eeb8916ae2c97 to your computer and use it in GitHub Desktop.
// Potentially unintended. '' is falsy, result: 'Hello, world!'
const headerText = response.settings.headerText || 'Hello, world!';
// Potentially unintended. 0 is falsy, result: 300
const animationDuration = response.settings.animationDuration || 300;
// Potentially unintended. false is falsy, result: true
const showSplashScreen = response.settings.showSplashScreen || true;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment