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 lack of typing work on typescript ? should it say that the parameters are not typed ?
Is it actually BP to write this outside of the class declaration?
As we are in TypeScript, the TypeScript string type should be used.
Spaces are also the key for a readable piece of code.
https://stackoverflow.com/questions/14727044/what-is-the-difference-between-types-string-and-string
var str: String = new String("Hello world"); // Uses the JavaScript String object
var str: string = String("Hello World"); // Uses the TypeScript string type
What is the difference between type
String
vs.string
?Wouldn't for .. of be functionally identical (And slightly easier to read)?
And it hurts my brain more. That counts for somethingggg right ;-)?
This solution looks more elegant, but in fact is slower than a normal for loop.