(targetObj: any, fn: any, context?: any)
| 304 | * @param context |
| 305 | */ |
| 306 | export 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 | |
| 314 | interface IParseOptions { |
| 315 | thisRequiredInJSE?: boolean; |
no test coverage detected
searching dependent graphs…