UNPKG

704 BTypeScriptView Raw
1/**
2 * Executes the provided `callback` once for each enumerable own property in the
3 * object. The `callback` is invoked with three arguments:
4 *
5 * - the property value
6 * - the property name
7 * - the object being traversed
8 *
9 * Properties that are added after the call to `forEachObject` will not be
10 * visited by `callback`. If the values of existing properties are changed, the
11 * value passed to `callback` will be the value at the time `forEachObject`
12 * visits them. Properties that are deleted before being visited are not
13 * visited.
14 */
15declare function forEachObject(object: object | null, callback: any, context?: any): void;
16
17declare namespace forEachObject {}
18
19export = forEachObject;