sindresorhus

unique-random-array

Get consecutively unique elements from an array

by sindresorhus

JavaScript

JavaScript72.3%
TypeScript27.7%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

4 of 6 standards met

Community profile →
71
✓README✓License✓Contributing✓Code of Conduct○Issue Template○PR Template
try-to-fly

When passing an empty array as an argument, the first call to the function returns undefined, while the second call throws an error. It would be better to throw an error directly when passing an empty array, instead of throwing an error on the second call.

try-to-fly · 2y ago
Structured data for AI agents

Repository: sindresorhus/unique-random-array. Description: Get consecutively unique elements from an array Stars: 76, Forks: 10. Primary language: JavaScript. Languages: JavaScript (72.3%), TypeScript (27.7%). License: MIT. Latest release: v4.0.0 (2y ago). Open PRs: 0, open issues: 0. Last activity: 2y ago. Community health: 71%. Top contributors: sindresorhus, BendingBender, Richienb.