Skip to content

Instantly share code, notes, and snippets.

@LukaJCB
Created August 1, 2016 22:10
Show Gist options
  • Select an option

  • Save LukaJCB/a9cef6a02adbb0f0efca42af6abbb397 to your computer and use it in GitHub Desktop.

Select an option

Save LukaJCB/a9cef6a02adbb0f0efca42af6abbb397 to your computer and use it in GitHub Desktop.
var arr = [1,2,3,4,5,6,7,8,9]
var arr2 = arr.map(x => x + 8)
.filter(x => x % 2 == 0)
.map(x => x * 4)
console.log(arr2[0])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment