cms/app-client/app/helpers/if-or.js
author Chloe Laisne <chloe.laisne@gmail.com>
Mon, 04 Jul 2016 17:56:05 +0200
changeset 221 0bee030d7411
parent 217 989b9c36b849
child 235 51acae6af8a3
permissions -rw-r--r--
Add popcorn-js in dependencies Run [bower install]

import Ember from 'ember';

export function ifOr(params) {
	return params.find(element => element);
}

export default Ember.Helper.helper(ifOr);