{"size": 270, "ext": "js", "max_stars_repo_path": "numbertest/node_modules/element-plus/es/utils/raf.js", "max_stars_repo_name": "inymtern/blog", "max_stars_repo_stars_event_min_datetime": "2022-01-02T07:06:53.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-02T07:06:53.000Z", "max_issues_repo_path": "numbertest/node_modules/element-plus/es/utils/raf.js", "max_issues_repo_name": "inymtern/blog", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "numbertest/node_modules/element-plus/es/utils/raf.js", "max_forks_repo_name": "inymtern/blog", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.5454545455, "max_line_length": 58, "alphanum_fraction": 0.6481481481}
import isServer from './isServer';

let rAF = (fn) => setTimeout(fn, 16);
let cAF = (handle) => clearTimeout(handle);
if (!isServer) {
    rAF = (fn) => window.requestAnimationFrame(fn);
    cAF = (handle) => window.cancelAnimationFrame(handle);
}

export { cAF, rAF };
