{"size": 298, "ext": "js", "max_stars_repo_path": "src/helpers/reusable.js", "max_stars_repo_name": "roy-stewart/FnJS", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/helpers/reusable.js", "max_issues_repo_name": "roy-stewart/FnJS", "max_issues_repo_issues_event_min_datetime": "2020-04-25T20:42:57.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-14T10:47:36.000Z", "max_forks_repo_path": "src/helpers/reusable.js", "max_forks_repo_name": "roy-stewart/FnJS", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 12, "max_forks_count": null, "avg_line_length": 21.2857142857, "max_line_length": 68, "alphanum_fraction": 0.6241610738}
class ReusableIterable {
    constructor(iteratorFactory) {
        this.iteratorFactory = iteratorFactory;
    }

    [Symbol.iterator]() {
        return this.iteratorFactory();
    }
}

module.exports = function (target) {
    return (...args) => new ReusableIterable(() => target(...args));
};
