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

backOpen Source→ast-compare→Examples

Permalink to Table of ContentsTable of Contents

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

Permalink to Quick TakeQuick Take

↑ back to top

Permalink to Compare ArraysCompare Arrays

↑ back to top

Permalink to Compare Plain ObjectsCompare Plain Objects

↑ back to top

Permalink to Compare StringsCompare Strings

↑ back to top

Permalink to opts.arrayOrderopts.arrayOrder

↑ back to top

Permalink to opts.hungryForWhitespaceopts.hungryForWhitespace

↑ back to top

Permalink to opts.matchStrictlyopts.matchStrictly

↑ back to top

Permalink to opts.useWildcardsopts.useWildcards

↑ back to top

Permalink to opts.verboseWhenMismatchesopts.verboseWhenMismatches

↑ back to top

Permalink to Report deterministic work and elapsed timeReport deterministic work and elapsed time

↑ back to top

Permalink to Report comparison progressReport comparison progress

↑ back to top

Permalink to Match each unordered array element only onceMatch each unordered array element only once

↑ back to top

Permalink to Compare nested arrays without regard to orderCompare nested arrays without regard to order

↑ back to top

Permalink to Match object keys using wildcardsMatch 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