{"size": 1045, "ext": "js", "max_stars_repo_path": "tests/object/isPrimitive.js", "max_stars_repo_name": "Fenzland/betterJS", "max_stars_repo_stars_event_min_datetime": "2019-12-19T20:22:31.000Z", "max_stars_repo_stars_event_max_datetime": "2022-02-24T18:36:47.000Z", "max_issues_repo_path": "tests/object/isPrimitive.js", "max_issues_repo_name": "Fenzland/BetterJS", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "tests/object/isPrimitive.js", "max_forks_repo_name": "Fenzland/BetterJS", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 47.5, "max_line_length": 71, "alphanum_fraction": 0.6344497608}
import { test, } from '../Robberfly.js';
import '../../src/object/isPrimitive.js';

test( 'Object.isPrimitive', ( { assertBe, }, )=> {
	assertBe( Object.isPrimitive( null, ), true, );
	assertBe( Object.isPrimitive( true, ), true, );
	assertBe( Object.isPrimitive( new Boolean( true ), ), false, );
	assertBe( Object.isPrimitive( '1', ), true, );
	assertBe( Object.isPrimitive( new String( '1' ), ), false, );
	assertBe( Object.isPrimitive( 1, ), true, );
	assertBe( Object.isPrimitive( new Number( 1 ), ), false, );
	assertBe( Object.isPrimitive( 1n, ), true, );
	assertBe( Object.isPrimitive( Object( 1n ), ), false, );
	assertBe( Object.isPrimitive( Symbol( 'foo', ), ), true, );
	assertBe( Object.isPrimitive( Object( Symbol( 'foo', ) ), ), false, );
	assertBe( Object.isPrimitive( {}, ), false, );
	assertBe( Object.isPrimitive( Object.create( null, ), ), false, );
	assertBe( Object.isPrimitive( new (class {})(), ), false, );
	assertBe( Object.isPrimitive( ()=> {}, ), false, );
	assertBe( Object.isPrimitive( class {}, ), false, );
}, );
