function scale(coordinate, scale) {
  coordinate[0] *= scale;
  coordinate[1] *= scale;
  return coordinate;
}
Scale `coordinate` by `scale`. `coordinate` is modified in place and returned
by the function.

Example:

    import {scale as scaleCoordinate} from 'ol/coordinate.js';

    const coord = [7.85, 47.983333];
    const scale = 1.2;
    scaleCoordinate(coord, scale);
    // coord is now [9.42, 57.5799996]

@param {Coordinate} coordinate Coordinate.
@param {number} scale Scale factor.
@return {Coordinate} Coordinate.