node_modules/mdsvex/dist/main.es.js
// Parse comma-separated tokens to an array.
Parse comma-separated tokens to an array.
Parse comma - separated tokens to an array .
function parse$2(value) {
  var values = [];
  var input = String(value || empty$1);
  var index = input.indexOf(comma);
  var lastIndex = 0;
  var end = false;
  var val;
  while (!end) {
    if (index === -1) {
      index = input.length;
      end = true;
    }
    val = input.slice(lastIndex, index).trim();
    if (val || !end) {
      values.push(val);
    }
    lastIndex = index + 1;
    index = input.indexOf(comma, lastIndex);
  }
  return values
}
function parse$2 ( value ) { var values = [ ] ; var input = String ( value || empty$1 ) ; var index = input . indexOf ( comma ) ; var lastIndex = 0 ; var end = false ; var val ; while ( ! end ) { if ( index === - 1 ) { index = input . length ; end = true ; } val = input . slice ( lastIndex , index ) . trim ( ) ; if ( val || ! end ) { values . push ( val ) ; } lastIndex = index + 1 ; index = input . indexOf ( comma , lastIndex ) ; } return values }
Parse comma-separated tokens to an array.
Parse comma - separated tokens to an array .