News for hackers. Stuff that matters.
Re:JavaScript Equality Minesweeper by sonnyblarney on Wednesday September 19, 2018 @04:40AM (#18022781)
If you want to type an array, you can do that in Typescript.

let x:number[] = []; x.push("x");

Here, the transpiler will catch the error of trying to push a string to a number array.

Typing is your friend, and it will in almost all cases help you write cleaner and safer code.

There are no comments on this comment yet.