ForestAdmin/toolbelt

View on GitHub
src/utils/handlebars/helpers/and.ts

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
import Handlebars from 'handlebars';

function and(value1, value2) {
  return Boolean(value1 && value2);
}

Handlebars.registerHelper('and', and);

export default and;