code: function split(val, chars) {
      if (is_1.isArray(val))
          return val;
      if (!is_1.isValue(val) || !is_1.isString(val))
          return null;
      // default characters.
      var defChars = ['/', '.', ',', ';', '|'];
      var char;
      var arr;
      chars = chars ? to_1.toArray(chars) : defChars;
      // if no char iterate defaults.
      var i = 0;
      while (i < chars.length && !char) {
          if (val.indexOf(chars[i]) !== -1) {
              char = chars[i];
          }
          i++;
      }
      if (!is_1.isValue(char))
          return [val];
      arr = val.split(char).map(function (v) { return v.trim(); });
      // If empty remove first element.
      // this happens when splitting on
      // char and is first char in string.
      if (is_1.isEmpty(arr[0]))
          arr.shift();
      return arr;
  }
docs: Split
  Splits a string at character.
  Default possible chars to match: ['/', '.', ',', ';', '|']
  Note accepts string[] to simplify external methods that call split
  In this case will simply return the array.
  
  @param val the string to be split.
  @param char the character to split at.