src/index.js
function getTokens (string) {
  let tokens = null
  try { tokens = esprima.tokenize('`'+ string +'`') }
  catch (e) { tokens = [] }
  return tokens
}
function getTokens (string) {
  let tokens = null
  try { tokens = esprima.tokenize('`'+ string +'`') }
  catch (e) { tokens = [] }
  return tokens
}
function getTokens ( string ) { let tokens = null try { tokens = esprima . tokenize ( '`' + string + '`' ) } catch ( e ) { tokens = [ ] } return tokens }
Returns an array of known tokens
in a javascript string.

@private
@param {String} string
@return {Array}
Returns an array of known tokens in a javascript string .