Namespace: eachProperty

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.
Source:
eachProperty.js, line 34

Parameters:

NameTypeDescription
object
AnySome value.
fn
just.eachProperty~fnThe function that will be called on each iteration.
thisArg
[optional]
Anythis for fn.
opts
objectSome options.

Properties

NameTypeDefaultDescription
addNonOwned
[optional]
booleanfalseInclude 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:

`true` if the function was interrupted, `false` otherwise.
Type
boolean

Type Definitions

fn(value, key, objectnon-null) → {boolean}

Source:
eachProperty.js, line 3
This:

{@link

Parameters:
NameTypeDescription
value
AnyThe current value.
key
AnyThe current key.
object
objectThe current object being iterated.
Returns:
If `true`, the current loop will stop.
Type
boolean