lib/walker.js
function coord(coordOrColumn, row) {
  if (arguments.length == 1) { // copy incoming coord object
    return {
      column: coordOrColumn.column,
      row: coordOrColumn.row
    };
  } else if (arguments.length == 2) { // create coord object
    return {
      column: coordOrColumn,
      row: row
    };
  }
}
function coord(coordOrColumn, row) {
  if (arguments.length == 1) { // copy incoming coord object
    return {
      column: coordOrColumn.column,
      row: coordOrColumn.row
    };
  } else if (arguments.length == 2) { // create coord object
    return {
      column: coordOrColumn,
      row: row
    };
  }
}
function coord ( coordOrColumn , row ) { if ( arguments . length == 1 ) { // copy incoming coord object return { column : coordOrColumn . column , row : coordOrColumn . row } ; } else if ( arguments . length == 2 ) { // create coord object return { column : coordOrColumn , row : row } ; } }
Creates a coordinate object which is an object with column and row properties.

@param {object|number} coordOrColumn - Coordinate object to copy or column
number to create coordinate object with.
@param {number} [row] - Required when first argument is column number.
@param {object} object with column and row properties
Creates a coordinate object which is an object with column and row properties .