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

backOpen Source→ranges-push→Examples

Table of Contents

  • Quick Take
  • Add a complete array of ranges in one call
  • Read the most recently gathered range
  • Collapse replacement whitespace to one character
  • Retain at most two line breaks in replacement whitespace
  • Concatenate replacement values when same-start ranges merge
  • Keep the later replacement value when same-start ranges merge
  • Replace all previously gathered ranges
  • Accept the string form of merge type one
  • Accept the string form of merge type two
  • Clear every gathered range
↑ back to top

Quick Take

↑ back to top

Add a complete array of ranges in one call

↑ back to top

Read the most recently gathered range

↑ back to top

Collapse replacement whitespace to one character

↑ back to top

Retain at most two line breaks in replacement whitespace

↑ back to top

Concatenate replacement values when same-start ranges merge

↑ back to top

Keep the later replacement value when same-start ranges merge

↑ back to top

Replace all previously gathered ranges

↑ back to top

Accept the string form of merge type one

↑ back to top

Accept the string form of merge type two

↑ back to top

Clear every gathered range

↑ 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