MCPcopy
hub / github.com/alibaba/lowcode-engine / forEach

Function forEach

packages/renderer-core/src/utils/common.ts:306–312  ·  view source on GitHub ↗
(targetObj: any, fn: any, context?: any)

Source from the content-addressed store, hash-verified

304 * @param context
305 */
306export function forEach(targetObj: any, fn: any, context?: any) {
307 if (!targetObj || Array.isArray(targetObj) || isString(targetObj) || typeof targetObj !== 'object') {
308 return;
309 }
310
311 Object.keys(targetObj).forEach((key) => fn.call(context, targetObj[key], key));
312}
313
314interface IParseOptions {
315 thisRequiredInJSE?: boolean;

Callers 4

BaseRendererClass · 0.90
common.test.tsFile · 0.90
parseDataFunction · 0.85
serializeParamsFunction · 0.85

Calls 2

isStringFunction · 0.70
forEachMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…