Express Sweet API Reference - v3.0.0
    Preparing search index...
    • Returns boolean if the array contains the element strictly or non-strictly.

      Parameters

      • items: any[]

        The array.

      • value: any

        The value to be checked for existence in the array.

      • strict: boolean = true

        FALSE for non-strict checking. TRUE by default.

      Returns boolean

      Returns true if the array contains the specified value, false otherwise.

      {{includes [1, 2, 3] 2}}
      {{includes [1, 2, 3] 2 true}}
      {{#if (includes [1, 2, 3] 2)}}...{{/if}}
      {{ifx (includes [1, 2, 3] 2) true false}}