const levels = [
  {
    targets: [
      [4, 3],
      [4, 10],
    ],
  },
  {
    targets: [
      [21, 3],
      [13, 7],
    ],
  },
];

export default levels.map(level => ({
  ...level,
  player: level.player || {
    x: 0,
    y: 3
  },
  enemy: level.enemy || {
    x: 23,
    y: 11
  },
}));

const levels = [
  {
    targets: [
      [4, 3],
      [4, 11],
    ],
  },
  {
    targets: [
      [21, 3],
      [13, 7],
    ],
  },
];

export default levels.map(level => ({
  ...level,
  player: level.player || {
    x: 0,
    y: 3
  },
  enemy: level.enemy || {
    x: 23,
    y: 11
  },
}));

Move target in level 1
Move target in level 1
