MCPcopy Index your code
hub / github.com/angular/angular / withOrderedKeys

Function withOrderedKeys

packages/service-worker/config/src/generator.ts:195–201  ·  view source on GitHub ↗
(unorderedObj: T)

Source from the content-addressed store, hash-verified

193}
194
195function withOrderedKeys<T extends {[key: string]: any}>(unorderedObj: T): T {
196 const orderedObj = {} as {[key: string]: any};
197 Object.keys(unorderedObj)
198 .sort()
199 .forEach((key) => (orderedObj[key] = unorderedObj[key]));
200 return orderedObj as T;
201}
202
203function buildCacheQueryOptions(
204 inOptions?: Pick<CacheQueryOptions, 'ignoreSearch'>,

Callers 1

processMethod · 0.85

Calls 2

keysMethod · 0.65
forEachMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…