function parsePath(path) {
  var match = path.match(/^\/(\d+)\/?(.*)?$/);

  if (!match) {
    return null;
  }

  var _match = (0, _slicedToArray2.default)(match, 3),
      row = _match[1],
      column = _match[2];

  return {
    row: parseInt(row, 10),
    col: /^\d*$/.test(column) ? parseInt(column, 10) : column
  };
}
Extract coordinates from path where data was changed.

@param {String} path Path describing where data was changed.
@returns {Object|null} Returns an object with `row` and `col` properties or `null` if path doesn't have necessary information.