Collection Functions

Search
Feedback
  • all()

    Evaulates a StructrScript expression for each element of a collection.

  • any()

    Evaluates a StructrScript expression for each element of a collection.

  • complement()

    Removes elements from a collection

  • double_sum()

    Returns the sum of a collection of floating-point values

  • each()

    Evaluates an expression for each element of a collection

  • extract()

    Maps a collection of entities to a collection of values using a property key

  • filter()

    Filters a collection according to a filter expression

  • first()

    Returns the first element of a collection

  • int_sum()

    Returns the sum of a collection of integers

  • is_collection()

    Checks if an object is a collection

  • keys()

    Returns the keys of a given object or map

  • last()

    Returns the last element of a collection

  • merge()

    Merges nested collections into a single collection

  • merge_unique()

    Merges nested collections into a single collection, removing duplicates

  • none()

    Evaluates a StructrScript expression for a collection of elements.

  • nth()

    Returns an object with a given index from a collection

  • size()

    Returns the size of a collection

  • sort()

    Sorts a collection according to a property key

  • unwind()

    Flattens nested collections

  • values()

    Returns the values of a given object or map

Graph-Browser

About this article
Last change 2016-03-04
Topics FrontendFunctionsStructr 2.0