dist/jst9.js
function _fetchWordList(path, callback) {
    var words = [];

    axios.get(path)
    .then(function(response) {

      var jsonData = response.data;

      if(response.responseType === 'text') {
        jsonData = JSON.parse(jsonData);
      }

      if(Array.isArray(jsonData.words)) {
        words = jsonData.words;
      }

      callback(words);
    }.bind(this))
    .catch(function(error) {
      callback(words);
    }.bind(this));
  }
function _fetchWordList(path, callback) {
    var words = [];

    axios.get(path)
    .then(function(response) {

      var jsonData = response.data;

      if(response.responseType === 'text') {
        jsonData = JSON.parse(jsonData);
      }

      if(Array.isArray(jsonData.words)) {
        words = jsonData.words;
      }

      callback(words);
    }.bind(this))
    .catch(function(error) {
      callback(words);
    }.bind(this));
  }
function _fetchWordList ( path , callback ) { var words = [ ] ; axios . get ( path ) . then ( function ( response ) { var jsonData = response . data ; if ( response . responseType === 'text' ) { jsonData = JSON . parse ( jsonData ) ; } if ( Array . isArray ( jsonData . words ) ) { words = jsonData . words ; } callback ( words ) ; } . bind ( this ) ) . catch ( function ( error ) { callback ( words ) ; } . bind ( this ) ) ; }
Fetches the word list from an address
@param  {String} path Path of a JSON file with an array called 'words' with the word list
@return {Array}      Word list extracted from the given path
Fetches the word list from an address