| author | ymh <ymh.work@gmail.com> |
| Tue, 15 Nov 2016 18:27:17 +0100 | |
| changeset 426 | d8ae6c0c0a0a |
| 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);