Created
September 2, 2016 15:12
-
-
Save krivaten/a7662fea8da50b42e5ff2311643103f3 to your computer and use it in GitHub Desktop.
Almost Equal Helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*jslint eqeq: true*/ | |
import Ember from 'ember'; | |
/** | |
* Almost equal helpers | |
* @param {Array} params Array of params | |
* @return {Boolean} Whether or not the passed params equal value but perhaps not type | |
*/ | |
export function aeq(params) { | |
return params[0] == params[1]; | |
} | |
export default Ember.Helper.helper(aeq); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment