
| Current Path : /usr/share/nodejs/json-stringify-safe/node_modules/kindof/ |
Linux ift1.ift-informatik.de 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 |
| Current File : //usr/share/nodejs/json-stringify-safe/node_modules/kindof/kindof.js |
if (typeof module != "undefined") module.exports = kindof
function kindof(obj) {
var type
if (obj === undefined) return "undefined"
if (obj === null) return "null"
switch (type = typeof obj) {
case "object":
switch (Object.prototype.toString.call(obj)) {
case "[object RegExp]": return "regexp"
case "[object Date]": return "date"
case "[object Array]": return "array"
}
default: return type
}
}