Skip to content

Instantly share code, notes, and snippets.

@vojtatranta
Created November 30, 2016 21:14
Show Gist options
  • Save vojtatranta/c73d68575260b0ea53e3535a67d33234 to your computer and use it in GitHub Desktop.
Save vojtatranta/c73d68575260b0ea53e3535a67d33234 to your computer and use it in GitHub Desktop.
// @flow
const arr = [[], []]
const fun = (x: number) => arr[x]
const a = fun(100).map(ba => ba.toLowerCase())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment