Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The expression
ROMAN[k]
has an implicitany
type since TypeScript currently always treats the variable in a for...in as astring
. This is problematic and means you do not have type protection when accessingROMAN
with random string values. The TypeScript issue https://github.com/Microsoft/TypeScript/issues/3500#issuecomment-579360564 is attempting to address this.This has not been correct since 2015: https://2ality.com/2015/10/property-traversal-order-es6.html
The insertion order for the specific object they created can be relied upon.