index.js
function cloneMatches(words) {
  var result = {}
  var key
  var match

  for (key in words) {
    match = words[key]

    result[key] = {
      matches: match.matches,
      stem: match.stem,
      score: match.score
    }
  }

  return result
}
function cloneMatches(words) {
  var result = {}
  var key
  var match

  for (key in words) {
    match = words[key]

    result[key] = {
      matches: match.matches,
      stem: match.stem,
      score: match.score
    }
  }

  return result
}
function cloneMatches ( words ) { var result = { } var key var match for ( key in words ) { match = words [ key ] result [ key ] = { matches : match . matches , stem : match . stem , score : match . score } } return result }
Clone the given map of words.  This is a two level-deep clone.
Clone the given map of words . This is a two level - deep clone .