Express Sweet API Reference - v3.0.0
    Preparing search index...
    • Check if it is empty. If the value is an array, returns true if there are no elements. If the value is a string, the leading and trailing spaces are trimmed and then checked.

      Parameters

      • value: any

        Character strings, arrays, objects, etc. to be checked.

      Returns boolean

      Returns true if the value is empty, false otherwise.

      {{empty val}}
      {{#if (empty val)}}...{{/if}}