import { IHtmlEngineHelper , IHandlebarsOptions } from './html-engine-helper.interface' ; export class OrHelper implements IHtmlEngineHelper { public helperFunc ( context ) { let len = arguments . length - 1 ; let options = arguments [ len ] ; for ( let i = 1 ; i < len ; i ++ ) { if ( arguments [ i ] ) { return options . fn ( context ) ; } } return options . inverse ( context ) ; } }