Skip to content

checkTypes: "natives" should be "primitives" (see notes below) #165

Open
@gajus

Description

@gajus
typeof true
"boolean"

OK

typeof 1
"number"

OK

typeof 'foo'
"string"

OK

typeof {}
"object"

NOT OK

[].constructor.name
"Array"

OK

new Date().constructor.name
"Date"

OK

/test/.constructor.name
"RegExp"

OK

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions