function isValidCoord(coord) {
  var maxTableItemsCount = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : Infinity;
  return typeof coord === 'number' && coord >= 0 && coord < maxTableItemsCount;
}
Check if passed value can be treated as valid cell coordinate. The second argument is
used to check if the value doesn't exceed the defined max table rows/columns count.

@param {*} coord
@param {Number} maxTableItemsCount The value that declares the maximum coordinate that is still validatable.
@return {Boolean}