Jetpack/Collections: Difference between revisions

Jump to navigation Jump to search
m
Line 172: Line 172:


== Operators ==
== Operators ==
All operators observe the original collections they are constructed from, and adapt the result based on changes, and notify any observers that are registered on the operator result collection.


   * Returns a collection that contains all values from coll1 and coll2.
   * Returns a collection that contains all values from coll1 and coll2.
Line 204: Line 206:
   * @returns {Collection}
   * @returns {Collection}
   function sortColl(coll, sortFunc)
   function sortColl(coll, sortFunc)
All operators observe the original collections they are constructed from, and adapt the result based on changes, and notify any observers that are registered on the operator result collection.


= Implementation =
= Implementation =
Confirmed users
596

edits

Navigation menu