Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

backOpen Source→ast-delete-object→Examples

Permalink to Table of ContentsTable of Contents

  • Quick Take
  • Delete empty objects throughout a tree
  • Delete every object that contains the requested pair
  • Delete a matching object nested under another object
  • Delete the root object when it contains the requested key-value pairs
  • Keep whitespace-only objects when hungry matching is disabled
  • opts.hungryForWhitespace
  • opts.matchKeysStrictly
  • Delete an object that contains additional keys
↑ back to top

Permalink to Quick TakeQuick Take

↑ back to top

Permalink to Delete empty objects throughout a treeDelete empty objects throughout a tree

↑ back to top

Permalink to Delete every object that contains the requested pairDelete every object that contains the requested pair

↑ back to top

Permalink to Delete a matching object nested under another objectDelete a matching object nested under another object

↑ back to top

Permalink to Delete the root object when it contains the requested key-value pairsDelete the root object when it contains the requested key-value pairs

↑ back to top

Permalink to Keep whitespace-only objects when hungry matching is disabledKeep whitespace-only objects when hungry matching is disabled

↑ back to top

Permalink to opts.hungryForWhitespaceopts.hungryForWhitespace

↑ back to top

Permalink to opts.matchKeysStrictlyopts.matchKeysStrictly

↑ back to top

Permalink to Delete an object that contains additional keysDelete an object that contains additional keys

↑ back to top
back 

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab