just.eachProperty(object, fn, thisArgopt, opts) → {boolean}
Converts object to an Object, iterates over it,
calls a function on each iteration, and if a truthy value
is returned from that function, the loop will stop.
Parameters:
Name
Type
Description
object
Any
Some value.
fn
just.eachProperty~fn
The function that will be
called on each iteration.
thisArg
[optional]
Any
this for fn.
opts
object
Some options.
Properties
Name
Type
Default
Description
addNonOwned
[optional]
boolean
false
Include non-owned properties.
`false`: iterate only the owned properties.
`true`: iterate the (enumerable) inherited properties too.
Throws:
If fn is not a function.
-
Type
-
TypeError
Returns:
Name | Type | Description | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
object
|
Any | Some value. | ||||||||
fn
|
just.eachProperty~fn | The function that will be called on each iteration. | ||||||||
thisArg
[optional] |
Any | this for fn. | ||||||||
opts
|
object | Some options.
Properties
|
`true` if the function was interrupted, `false` otherwise.
- Type
- boolean