UNPKG
4.5
Version:
latest (0.5.0)
0.5.0
0.4.0
0.3.0
0.2.0
0.1.0
Monadic test assertions
github.com/TylorS/4.5
TylorS/4.5
4.5
/
src
/
helpers
/
type.ts
6 lines
(5 loc)
•
173 B
text/typescript
View Raw
1
2
3
4
5
6
export
function
type
(
value
:
any
):
string
{
return
value ===
null
?
'Null'
: value ===
void
0
?
'Undefined'
:
Object
.
prototype
.
toString
.
call
(value).
slice
(
8
, -
1
); }