{"size": 338, "ext": "js", "max_stars_repo_path": "js/src/extractHashtags.js", "max_stars_repo_name": "Hoishin/twitter-text", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js/src/extractHashtags.js", "max_issues_repo_name": "Hoishin/twitter-text", "max_issues_repo_issues_event_min_datetime": "2017-11-12T21:13:06.000Z", "max_issues_repo_issues_event_max_datetime": "2018-02-12T12:43:35.000Z", "max_forks_repo_path": "js/src/extractHashtags.js", "max_forks_repo_name": "Hoishin/twitter-text", "max_forks_repo_forks_event_min_datetime": "2020-05-04T19:01:36.000Z", "max_forks_repo_forks_event_max_datetime": "2020-05-04T19:01:36.000Z"}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 28.1666666667, "max_line_length": 70, "alphanum_fraction": 0.7514792899}
import extractHashtagsWithIndices from './extractHashtagsWithIndices';

export default function (text) {
  const hashtagsOnly = [];
  const hashtagsWithIndices = extractHashtagsWithIndices(text);
  for (let i = 0; i < hashtagsWithIndices.length; i++) {
    hashtagsOnly.push(hashtagsWithIndices[i].hashtag);
  }

  return hashtagsOnly;
}
