{"size": 473, "ext": "js", "max_stars_repo_path": "src/b/type/__tests__/isNumber.test.js", "max_stars_repo_name": "u9648u6653u52c7/k2", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/b/type/__tests__/isNumber.test.js", "max_issues_repo_name": "u9648u6653u52c7/k2", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/b/type/__tests__/isNumber.test.js", "max_forks_repo_name": "u9648u6653u52c7/k2", "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": 33.7857142857, "max_line_length": 92, "alphanum_fraction": 0.6109936575}
import isNumber from "../isNumber";

it("should return true if param is Number but not NaN", () => {
    const arr = [true, NaN, "", null, undefined, {}, function () { }, new Map(), new Set()];
    arr.forEach(elem => {
        expect(isNumber(elem)).toBe(false);
    });
    expect(isNumber(10)).toBe(true);
    expect(isNumber(0b10)).toBe(true);
    expect(isNumber(0o10)).toBe(true);
    expect(isNumber(0x10)).toBe(true);
    expect(isNumber(Infinity)).toBe(true);
});
