Iterates over own enumerable properties of an object invoking iteratee for each property. The iteratee is
invoked with three arguments: (value, key, object). Iteratee functions may exit
iteration early by explicitly returning false.
Type Parameters
T
Parameters
object: T
The object to iterate over.
Optionaliteratee: ObjectIterator<T, any>
The function invoked per iteration.
Returns T
Returns object.
forOwn<T>(object, iteratee?): undefined | null | T
Iterates over own enumerable properties of an object invoking iteratee for each property. The iteratee is invoked with three arguments: (value, key, object). Iteratee functions may exit iteration early by explicitly returning false.