UNPKG

winnow

Version:

Apply sql-like filters to GeoJSON

8 lines (6 loc) 159 B
function toHash (value, hashStore = {}) { if (hashStore[value]) hashStore[value]++ else hashStore[value] = 1 return hashStore } module.exports = toHash