A simple function to check if a piece of data is truthy. JavaScript version.
Simple ESLint and TypeScript template.