UNPKG

name-suggestion-index

Version:

Canonical common brand names for OpenStreetMap

11 lines 557 B
/** * Returns a shallow copy of an object with its keys sorted and any array values sorted. * Keys that look like Wikidata QIDs (e.g. `Q42`) are sorted numerically; * all other keys are sorted with en-US locale collation. * This is useful for producing deterministic JSON output for file diffing. * * @param obj - The input object to sort * @returns A new object with sorted keys and sorted array values, or `null` if the input is falsy. */ export declare function sortObject<T extends object>(obj: T): T; //# sourceMappingURL=sort_object.d.ts.map