UNPKG

babel-plugin-typecheck

Version:

Transforms flow type annotations into runtime type checks.

7 lines 204 B
export default function demo (input: Map<string, number>): Map<number, string> { const converted = new Map(); for (let [key, value] of input) { converted.set(value, key); } return converted; }