Code Snippets - HandleBars.js Helpers - ONE
2015-06-25 : 18:00
Handlebars helper for getting the first non empty variable or object property. Handlebars is an awesome HTML templating language. For more information on Handlebars and its awesomeness, check out the main site of Handlebars.
Well... Because sometimes you could have more than one properties you want to check against and going the route of "if" and "else" may not be the most efficient method of checking against multiple properties. It also allows for a virtually unlimited amount of arguments.
That's all folks... for now.