mirror of
https://github.com/jaandrle/deka-dom-el
synced 2024-11-22 16:55:23 +01:00
7 lines
149 B
JavaScript
7 lines
149 B
JavaScript
|
export function typeOf(v){
|
||
|
const t= typeof v;
|
||
|
if(t!=="object") return t;
|
||
|
if(v===null) return "null";
|
||
|
return Object.prototype.toString.call(v);
|
||
|
}
|