Skip to content

Instantly share code, notes, and snippets.

View Panman82's full-sized avatar

Ryan Panning Panman82

View GitHub Profile
@Panman82
Panman82 / coalesce.js
Last active May 13, 2020 10:44
Ember.js Coalesce Template Helper
import { helper } from '@ember/component/helper';
export function coalesce(...args) {
return args.find(arg => arg !== null && arg !== undefined);
}
export default helper(params => coalesce(...params));