MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / arrayToObject

Function arrayToObject

out/cli.cjs:71806–71817  ·  view source on GitHub ↗
(arr)

Source from the content-addressed store, hash-verified

71804}
71805
71806// node_modules/axios/lib/helpers/formDataToJSON.js
71807function parsePropPath(name) {
71808 return utils_default.matchAll(/\w+|\[(\w*)]/g, name).map((match) => {
71809 return match[0] === "[]" ? "" : match[1] || match[0];
71810 });
71811}
71812function arrayToObject(arr) {
71813 const obj = {};
71814 const keys = Object.keys(arr);
71815 let i3;
71816 const len = keys.length;
71817 let key;
71818 for (i3 = 0; i3 < len; i3++) {
71819 key = keys[i3];
71820 obj[key] = arr[key];

Callers 1

buildPathFunction · 0.85

Calls 1

keysMethod · 0.45

Tested by

no test coverage detected