lib/utils/splitTemplate.js
function splitTemplate (template) {
  if (!template) {
    return []
  }
  return split(template).filter((seg) => seg !== '' && seg !== undefined)
}
function splitTemplate (template) {
  if (!template) {
    return []
  }
  return split(template).filter((seg) => seg !== '' && seg !== undefined)
}
function splitTemplate ( template ) { if ( ! template ) { return [ ] } return split ( template ) . filter ( ( seg ) => seg !== '' && seg !== undefined ) }
Split the given template into segments.
@param {string} template - The template to split
@returns {string[]} An array of string segments
Split the given template into segments .