Skip to content

SOF-7827: option to exclude keys while sorting#36

Merged
pranabdas merged 7 commits intomainfrom
feat/SOF-7827
Mar 7, 2026
Merged

SOF-7827: option to exclude keys while sorting#36
pranabdas merged 7 commits intomainfrom
feat/SOF-7827

Conversation

@pranabdas
Copy link
Member

No description provided.

export function sortKeysDeepForObject(obj: any, excludeKeys?: string[]): any {
const excludeSet = excludeKeys ? new Set(excludeKeys) : null;

function sortKeys(obj: any): any {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we avoid having a function inside a function and reuse sortKeysDeepForObject from before, while naming the new function sortKeysDeepForObjectWithExclude?

@pranabdas pranabdas merged commit 26fc323 into main Mar 7, 2026
8 checks passed
@pranabdas pranabdas deleted the feat/SOF-7827 branch March 7, 2026 06:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants