This documentation refers to the current trunk of the Infusion code and is being updated to reflect ongoing changes. As a result, it may contain information that is not relevant to the latest release, 1.4. For documentation related to v1.4 and earlier, please see the Infusion v1.4 Documentation
Skip to end of metadata
Go to start of metadata
This functionality is Sneak Peek status. This means that the APIs may change. We welcome your feedback, ideas, and code, but please use caution if you use this new functionality.

fluid.each(source, func)

Better jQuery.each which works on hashes as well as having the arguments the right way round.

File name: Fluid.js

Parameters

source (Arrayable or Object) The container to be iterated over.
func (Function) A function accepting (value, key) for each iterated object. This function may return a value to terminate the iteration

Return Value

None

See Also

  • [fluid.transform]

Example

In this example, the current time is added to each object in the array items.

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.