Skip to content

Instantly share code, notes, and snippets.

@jredville
Created August 13, 2012 20:16
Show Gist options
  • Save jredville/3343816 to your computer and use it in GitHub Desktop.
Save jredville/3343816 to your computer and use it in GitHub Desktop.
destructuring trick
args =
column:
isBand: false
foo: 'bar'
row:
dataRowIndex: 1
foo: 'bar'
_cellIndex: 1
foo: 'bar'
{column:
isBand: band
row:
dataRowIndex: rowIndex
_cellIndex: cellIndex} = args
#wishful thinking
{column.isBand: band, row.dataRowIndex: rowIndex, _cellIndex: cellIndex} = args
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment