lib/utils.js
function splitTo() {
  let to = arguments.length <= 0 || arguments[0] === undefined ? '' : arguments[0];

  if (/#/.test(to)) {
    return to.split('#');
  }
  return [];
}
function splitTo() {
  let to = arguments.length <= 0 || arguments[0] === undefined ? '' : arguments[0];

  if (/#/.test(to)) {
    return to.split('#');
  }
  return [];
}
function splitTo ( ) { let to = arguments . length <= 0 || arguments [ 0 ] === undefined ? '' : arguments [ 0 ] ; if ( / # / . test ( to ) ) { return to . split ( '#' ) ; } return [ ] ; }
Split a string to an array.

@example
splitTo('controller#action')
// => [ 'controller', 'action' ]

@param {String} to
@return {Array} [ controller, action ]
Split a string to an array .