MCPcopy Create free account
hub / github.com/bugy/script-server / toDict

Function toDict

web-src/src/common/utils/common.js:433–440  ·  view source on GitHub ↗
(array, fieldName)

Source from the content-addressed store, hash-verified

431}
432
433export function toDict(array, fieldName) {
434 var result = {};
435 for (var i = 0; i < array.length; i++) {
436 var element = array[i];
437 result[element[fieldName]] = element;
438 }
439 return result;
440}
441
442function compareNulls(value1, value2) {
443 if (isNull(value1) && isNull(value2)) {

Callers 1

UPDATE_SCRIPT_CONFIGFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected