_foreachProperty
Applies the given function to each Property in the received Thing or Model Value --
Function
THING or MODEL VALUE -> _foreachProperty(... code ...) -> RESULTS
This function is appropriate if you want to do something to each Property in a given Thing or Model Value.
It takes all of the Properties found in there, turns each into a PropAndValue, and hands it off to the
code contained in the parameter. The results are then bundled back up as a collection, and produced together.
Alternate Usage:
THING or MODEL VALUE -> _foreachProperty -> LIST OF PROPANDVALUES
If you use _foreachProperty with no parameter, it simply produces the list of PropAndValues, for later code
to use. These render reasonably sensibly, so this is a convenient way to simply display all the Properties
on this Thing.
Note that the PropAndValue passed into the code is a combination of both the link to the Property and
the Value of that Property in this Thing or Model Value. You can access those parts using the _prop and _val
functions.