Skip to content

feat: shakeDeep (recursive version of shake) - #496

Open
hazrid93 wants to merge 1 commit into
sodiray:masterfrom
hazrid93:hazrid93/53_252
Open

hazrid93 wants to merge 1 commit into
sodiray:masterfrom
hazrid93:hazrid93/53_252

Conversation

@hazrid93

Copy link
Copy Markdown

Closes #252.

Add shakeDeep(obj, filter=x => x===undefined) that recursively removes unwanted values from an object and its nested plain objects and arrays (using the filter, which receives value and key). The default filter removes undefined; null/false/0/empty string are preserved. Does not mutate the input.

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

@hazrid93 is attempting to deploy a commit to the rayunishinedev's projects Team on Vercel.

A member of the Team first needs to authorize it.

Closes sodiray#252.

Add shakeDeep(obj, filter=x => x===undefined) that recursively removes unwanted values from an object and its nested plain objects and arrays (using the filter, which receives value and key). The default filter removes undefined; null/false/0/empty string are preserved. Does not mutate the input.

This branch has not been deployed

No deployments
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.

[FEATURE REQUEST] .shakeDeep

1 participant