packages/warriorjs-core/src/getLevel.js
function getLevel(levelConfig) {
  const level = loadLevel(levelConfig);
  return JSON.parse(JSON.stringify(level));
}
function getLevel(levelConfig) {
  const level = loadLevel(levelConfig);
  return JSON.parse(JSON.stringify(level));
}
function getLevel ( levelConfig ) { const level = loadLevel ( levelConfig ) ; return JSON . parse ( JSON . stringify ( level ) ) ; }
Returns the level for the given level config.

@param {Object} levelConfig The config of the level.

@returns {Object} The level.
Returns the level for the given level config .