code: function WordList(words) {
    this.words = words;
    this.map = Object.create(null);
  
    for (let i = 0; i < words.length; i++) {
      const word = words[i];
      this.map[word] = i;
    }
  }
docs: Word List
  @constructor
  @ignore
  @param {Array} words