templatesmeteormeteor-blaze

Meteor template Blaze how to return only first element of array


For example I have an array: var arr = ['a', 'b'] and want to get only first element in template


Solution

  • Use {{arr.[0]}}.

    See Blaze docs.