Join Nostr
2025-02-10 20:29:51 UTC
in reply to

Steve Fenton ➜ on Nostr: you can use the shorthand `number[]` or `Array<number>` and they mean the same thing. ...

you can use the shorthand `number[]` or `Array<number>` and they mean the same thing. The same goes for read only arrays:

readonly number[]
ReadonlyArray<number>

The docs describe the shorthand version as a "nicer syntax". It's certainly more space efficient.