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

backOpen Source→ast-compare→Examples

Table of Contents

  • Quick Take
  • Compare Arrays
  • Compare Plain Objects
  • Compare Strings
  • opts.arrayOrder
  • opts.hungryForWhitespace
  • opts.matchStrictly
  • opts.useWildcards
  • opts.verboseWhenMismatches
  • Match each unordered array element only once
  • Compare nested arrays without regard to order
  • Match object keys using wildcards
↑ back to top

Quick Take

↑ back to top

Compare Arrays

↑ back to top

Compare Plain Objects

↑ back to top

Compare Strings

↑ back to top

opts.arrayOrder

↑ back to top

opts.hungryForWhitespace

↑ back to top

opts.matchStrictly

↑ back to top

opts.useWildcards

↑ back to top

opts.verboseWhenMismatches

↑ back to top

Match each unordered array element only once

↑ back to top

Compare nested arrays without regard to order

↑ back to top

Match object keys using wildcards

↑ 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