Last 12 weeks · 0 commits
4 of 6 standards met
This PR introduces a small optimization which eliminates the creation of multiple intermediate arrays by replacing the loop with a function to accumulate the normalized and merged ranges, which results in improved performance and memory efficiency - specially for larger datasets jsPerf Benchmark: https://jsperf.app/sexite/1/preview Original: Optimized:
Repository: sindresorhus/simplify-ranges. Description: Merge and normalize adjacent or overlapping integer ranges Stars: 34, Forks: 2. Primary language: JavaScript. Languages: JavaScript (100%). License: MIT. Latest release: v1.0.0 (2y ago). Open PRs: 0, open issues: 0. Last activity: 2y ago. Community health: 71%. Top contributors: sindresorhus, TomerAberbach.