Skip to content

Instantly share code, notes, and snippets.

@DanShappir
Created November 6, 2019 12:29
Show Gist options
  • Save DanShappir/367a59ea33dda0db9c072b689a5d71ef to your computer and use it in GitHub Desktop.
Save DanShappir/367a59ea33dda0db9c072b689a5d71ef to your computer and use it in GitHub Desktop.
Operation is pipelined functions
const result3 = numbers
|> filter(#, v => v % 2 === 0)
|> map(#, v => v + 1)
|> slice(#, 0, 3)
|> Array.from;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment