The object whose keys should be sorted.
A new object with the same values as the original, but with keys sorted in ascending order.
This function does not mutate the original object. It returns a new object with sorted keys.
V - The type of the values in the object.
const obj = { c: 1, a: 2, b: 3 };
objSortKeys(obj);
//=> { a: 2, b: 3, c: 1 }
Generated using TypeDoc
Sorts the keys of an object in alphabetical order.