| author | Chloe Laisne <chloe.laisne@gmail.com> |
| Mon, 26 Sep 2016 20:17:26 +0200 | |
| changeset 297 | 50c80dda4fb8 |
| parent 257 | eba9edbd8f46 |
| permissions | -rw-r--r-- |
import Ember from 'ember'; export function ifOperator([value1, operator, value2]) { switch(operator) { case '>': return value1 > value2; case '>=': return value1 >= value2; case '<=': return value1 <= value2; case '<': return value1 < value2; default: break; } return; } export default Ember.Helper.helper(ifOperator);