{"size": 375, "ext": "js", "max_stars_repo_path": "Exercises/4-count-types.js", "max_stars_repo_name": "gsvcrypto/DataTypes", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Exercises/4-count-types.js", "max_issues_repo_name": "gsvcrypto/DataTypes", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Exercises/4-count-types.js", "max_forks_repo_name": "gsvcrypto/DataTypes", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 20.8333333333, "max_line_length": 71, "alphanum_fraction": 0.5813333333}
'use strict';

/*const array = [true, 'hello', 5, 12, -200, false, false, 'word', 0.8,
  'any string', 44, true, false, 99, 'bye'];/**/

const countTypesInArray = array => {
  const hash = {};
  for (const e of array) {
    const v = typeof e;
    hash[v] ? hash[v]++ : hash[v] = 1;
  }
  return hash;
};

//countTypesInArray(array);

module.exports = { countTypesInArray };
