1.0.3 • Published 7 years ago

lc-type-of v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

typeOf

'Fix' typeof function

Reference

https://javascriptweblog.wordpress.com/2011/08/08/fixing-the-javascript-typeof-operator/

default typeof function

Undefined > “undefined“

Null > “object“

Boolean > “boolean“

Number > “number“

String > “string“

Object (native and not callable) > “object“

Object (native or host and callable) > “function“

Object (host and not callable) > Implementation-defined

this type of function

Undefined > “undefined“

Null > “null“

Boolean > “boolean“

Number > “number“

String > “string“

NaN > “number”

Object (native and not callable) > “object“

Object (native or host and callable) > “function“

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

8 years ago