Skip to content

Instantly share code, notes, and snippets.

@peeke peeke/box.es6
Created May 22, 2017

What would you like to do?
The box pattern
// The box pattern:
// Array chaining methods for single values
const box = v => [ v ]
.map(n => n * 2)
.map(n => n + 2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.