add eq helper
This commit is contained in:
@@ -39,6 +39,12 @@ const hbsHelpers = {
|
||||
lenNotEq: (array, comparitor) => {
|
||||
return array.length !== parseInt(comparitor, 10);
|
||||
},
|
||||
eq: (value, comparitor) => {
|
||||
return value == comparitor;
|
||||
},
|
||||
eqStrict: (value, comparitor) => {
|
||||
return value === comparitor;
|
||||
},
|
||||
optionSelected: (v1, v2) => {
|
||||
return v1 === v2 ? 'selected' : '';
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user