UNPKG

dk-plus

Version:
12 lines (11 loc) 443 B
const { toString: s } = Object.prototype, o = (t, n) => s.call(t) === `[object ${n}]`, c = (t) => o(t, "Date"), e = (t) => typeof t == "number" && !isNaN(t), i = (t) => typeof t == "string", r = (t) => o(t, "Boolean"), a = (t) => o(t, "Object"), y = (t) => o(t, "Function"), b = Array.isArray; export { b as isArray, r as isBoolean, c as isDateTime, y as isFunction, e as isNumber, a as isObject, i as isString, o as isType };