Skip to content

Instantly share code, notes, and snippets.

@newton-migosi
Created March 13, 2019 21:08
Show Gist options
  • Save newton-migosi/8bf1155ccfc11f63452861db42e6b97c to your computer and use it in GitHub Desktop.
Save newton-migosi/8bf1155ccfc11f63452861db42e6b97c to your computer and use it in GitHub Desktop.
new Grid({rows: 3, columns: 3})
.selectAll()
.fill(cell => Grid.flatIndex(cell, 3) + 1)
.selectAll(cell => cell.col < 2)
.mutate(val => val -1)
.apply()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment