MCPcopy Index your code
hub / github.com/bugy/script-server / asyncForEachKeyValue

Function asyncForEachKeyValue

web-src/src/common/utils/common.js:357–364  ·  view source on GitHub ↗
(array, callback)

Source from the content-addressed store, hash-verified

355}
356
357export async function asyncForEachKeyValue(array, callback) {
358 for (const key in array) {
359 if (array.hasOwnProperty(key)) {
360 const value = array[key];
361 await callback(key, value);
362 }
363 }
364}
365
366export function toBoolean(value) {
367 if (typeof (value) === 'boolean') {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected