index.js
function handleBlocks (config) {
  let blocks = []
  let blocksObj = config.blocks
  for (let i in blocksObj) {
    if (blocksObj.hasOwnProperty(i)) {
      if (isLanguage(blocksObj[i])) {
        blocks.push(_getBlock(config, 'language', true))
      } else {
        blocks.push(_getBlock(config, i))
      }
    }
  }
  return blocks
}
function handleBlocks (config) {
  let blocks = []
  let blocksObj = config.blocks
  for (let i in blocksObj) {
    if (blocksObj.hasOwnProperty(i)) {
      if (isLanguage(blocksObj[i])) {
        blocks.push(_getBlock(config, 'language', true))
      } else {
        blocks.push(_getBlock(config, i))
      }
    }
  }
  return blocks
}
function handleBlocks ( config ) { let blocks = [ ] let blocksObj = config . blocks for ( let i in blocksObj ) { if ( blocksObj . hasOwnProperty ( i ) ) { if ( isLanguage ( blocksObj [ i ] ) ) { blocks . push ( _getBlock ( config , 'language' , true ) ) } else { blocks . push ( _getBlock ( config , i ) ) } } } return blocks }
Handles all the blocks based on the given config.
@param config
@returns {Array}
Handles all the blocks based on the given config .