UNPKG

babel-plugin-typecheck

Version:

Transforms flow type annotations into runtime type checks.

11 lines (10 loc) 212 B
export default function demo (input): number { let a : Array = input for(let b : string of a) { let c : string = b if(c == '1') var x : number = parseFloat(c) } if(x != null) return x }