Why would you ever want a UUID in the form of a number array?
See original GitHub issueIn the latest release: version 2.0.0, the type signature of the return parameter in the v4 UUID function changed from string
to string | number[]
. Why? I’m curious what use case would require the UUID to be represented as a number array? As the change in the return signature is breaking for typescript projects that depend on the typed return signature. (which could be interpreted from the major release bump)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:9
- Comments:22 (9 by maintainers)
Top Results From Across the Web
What is a UUID, and why should you care? - Cockroach Labs
A UUID – that's short for Universally Unique IDentifier, by the way – is a 36-character alphanumeric string that can be used to...
Read more >How unique is UUID? - guid - Stack Overflow
"unique" means never collide. If it has any potential to collide, it's not unique. Therefore by definition, UUID is not unique, and safe...
Read more >Using the UUID data type - Oracle Help Center
The UUID data type is best suited In situations where you need a globally unique identifier for the records in a table that...
Read more >Generating Unique Identifiers in Your Programs (GUIDs/UUIDs)
As I read the man page, you shouldn't get duplicates from a single process calling uuid_generate_time() but it is possible to get duplicates ......
Read more >Guide to UUID in Java - Baeldung
But most of the time, we use UUID to identify something and can assign a random value. Therefore, the UUID class provides three...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Any update on this?
If anyone is still stuck on this, I just switched to using
uuid
,@types/uuid
, andreact-native-get-random-values
polyfill which works as expected.