Docs (4.0.0)
class Binding method

asList

Adds a filter, to make sure that the bound value is an iterable list.

asList<T = any>(): Binding<Iterable<T>>

Notes

  • This method allows arrays, Maps, ManagedList instances, and any other object that includes Symbol.iterator.
  • Other values are changed to undefined.

Return value

A new binding, typed as an Iterable object

Related