MCPcopy Index your code
hub / github.com/Lobos/react-ui / sortByKey

Function sortByKey

src/utils/objects.js:89–100  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

87}
88
89export function sortByKey (obj) {
90 if (!obj) {
91 return {};
92 }
93
94 let newObj = {};
95 Object.keys(obj).sort().forEach((key) => {
96 newObj[key] = obj[key];
97 });
98
99 return newObj;
100}
101
102export function shallowEqual(objA, objB) {
103 if (objA === objB) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…