@stryke/types 0.5.1 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -14
- package/dist/{utility-types/array.d.ts → array.d.ts} +0 -12
- package/dist/{utility-types/async.d.ts → async.d.ts} +1 -11
- package/dist/{utility-types/base.d.ts → base.d.ts} +23 -31
- package/dist/index.cjs +181 -16
- package/dist/index.d.ts +19 -4
- package/dist/index.mjs +1 -1
- package/dist/{utility-types/json.d.ts → json.d.ts} +0 -10
- package/dist/{utility-types/number.d.ts → number.d.ts} +0 -22
- package/dist/{utility-types/object.d.ts → object.d.ts} +1 -15
- package/dist/{utility-types/package-json.d.ts → package-json.d.ts} +3 -5
- package/dist/{utility-types/string.d.ts → string.d.ts} +0 -12
- package/dist/{utility-types/tsconfig.d.ts → tsconfig.d.ts} +0 -2
- package/dist/{utility-types/utilities.d.ts → utilities.d.ts} +1 -1
- package/dist/validations.cjs +1 -0
- package/dist/validations.mjs +0 -0
- package/package.json +125 -987
- package/dist/convert/buffer-to-string.cjs +0 -8
- package/dist/convert/buffer-to-string.d.ts +0 -1
- package/dist/convert/buffer-to-string.mjs +0 -1
- package/dist/convert/index.cjs +0 -71
- package/dist/convert/index.d.ts +0 -6
- package/dist/convert/index.mjs +0 -1
- package/dist/convert/string-to-uint8-array.cjs +0 -8
- package/dist/convert/string-to-uint8-array.d.ts +0 -7
- package/dist/convert/string-to-uint8-array.mjs +0 -1
- package/dist/convert/to-array.cjs +0 -9
- package/dist/convert/to-array.d.ts +0 -8
- package/dist/convert/to-array.mjs +0 -1
- package/dist/convert/to-string-key.cjs +0 -9
- package/dist/convert/to-string-key.d.ts +0 -7
- package/dist/convert/to-string-key.mjs +0 -1
- package/dist/convert/uint8-array-to-string.cjs +0 -8
- package/dist/convert/uint8-array-to-string.d.ts +0 -13
- package/dist/convert/uint8-array-to-string.mjs +0 -1
- package/dist/convert/utf8-array-to-string.cjs +0 -8
- package/dist/convert/utf8-array-to-string.d.ts +0 -13
- package/dist/convert/utf8-array-to-string.mjs +0 -1
- package/dist/helpers/index.cjs +0 -16
- package/dist/helpers/index.d.ts +0 -1
- package/dist/helpers/index.mjs +0 -1
- package/dist/helpers/parse-type-definition.cjs +0 -33
- package/dist/helpers/parse-type-definition.d.ts +0 -8
- package/dist/helpers/parse-type-definition.mjs +0 -1
- package/dist/type-checks/get-object-tag.cjs +0 -8
- package/dist/type-checks/get-object-tag.d.ts +0 -7
- package/dist/type-checks/get-object-tag.mjs +0 -1
- package/dist/type-checks/index.cjs +0 -456
- package/dist/type-checks/index.d.ts +0 -41
- package/dist/type-checks/index.mjs +0 -1
- package/dist/type-checks/is-array-like.cjs +0 -11
- package/dist/type-checks/is-array-like.d.ts +0 -7
- package/dist/type-checks/is-array-like.mjs +0 -1
- package/dist/type-checks/is-async-iterable.cjs +0 -10
- package/dist/type-checks/is-async-iterable.d.ts +0 -7
- package/dist/type-checks/is-async-iterable.mjs +0 -1
- package/dist/type-checks/is-bigint.cjs +0 -9
- package/dist/type-checks/is-bigint.d.ts +0 -16
- package/dist/type-checks/is-bigint.mjs +0 -1
- package/dist/type-checks/is-boolean.cjs +0 -14
- package/dist/type-checks/is-boolean.d.ts +0 -7
- package/dist/type-checks/is-boolean.mjs +0 -1
- package/dist/type-checks/is-buffer.cjs +0 -10
- package/dist/type-checks/is-buffer.d.ts +0 -5
- package/dist/type-checks/is-buffer.mjs +0 -1
- package/dist/type-checks/is-collection.cjs +0 -11
- package/dist/type-checks/is-collection.d.ts +0 -8
- package/dist/type-checks/is-collection.mjs +0 -1
- package/dist/type-checks/is-date.cjs +0 -10
- package/dist/type-checks/is-date.d.ts +0 -16
- package/dist/type-checks/is-date.mjs +0 -1
- package/dist/type-checks/is-deep-key.cjs +0 -26
- package/dist/type-checks/is-deep-key.d.ts +0 -35
- package/dist/type-checks/is-deep-key.mjs +0 -1
- package/dist/type-checks/is-empty-object.cjs +0 -23
- package/dist/type-checks/is-empty-object.d.ts +0 -14
- package/dist/type-checks/is-empty-object.mjs +0 -1
- package/dist/type-checks/is-empty-string.cjs +0 -16
- package/dist/type-checks/is-empty-string.d.ts +0 -7
- package/dist/type-checks/is-empty-string.mjs +0 -1
- package/dist/type-checks/is-empty.cjs +0 -35
- package/dist/type-checks/is-empty.d.ts +0 -8
- package/dist/type-checks/is-empty.mjs +0 -1
- package/dist/type-checks/is-equal.cjs +0 -18
- package/dist/type-checks/is-equal.d.ts +0 -1
- package/dist/type-checks/is-equal.mjs +0 -1
- package/dist/type-checks/is-error.cjs +0 -15
- package/dist/type-checks/is-error.d.ts +0 -17
- package/dist/type-checks/is-error.mjs +0 -1
- package/dist/type-checks/is-file-result.cjs +0 -11
- package/dist/type-checks/is-file-result.d.ts +0 -8
- package/dist/type-checks/is-file-result.mjs +0 -1
- package/dist/type-checks/is-float.cjs +0 -9
- package/dist/type-checks/is-float.d.ts +0 -8
- package/dist/type-checks/is-float.mjs +0 -1
- package/dist/type-checks/is-function.cjs +0 -23
- package/dist/type-checks/is-function.d.ts +0 -10
- package/dist/type-checks/is-function.mjs +0 -1
- package/dist/type-checks/is-integer.cjs +0 -10
- package/dist/type-checks/is-integer.d.ts +0 -8
- package/dist/type-checks/is-integer.mjs +0 -1
- package/dist/type-checks/is-mergeable-object.cjs +0 -14
- package/dist/type-checks/is-mergeable-object.d.ts +0 -1
- package/dist/type-checks/is-mergeable-object.mjs +0 -1
- package/dist/type-checks/is-non-null-object.cjs +0 -10
- package/dist/type-checks/is-non-null-object.d.ts +0 -7
- package/dist/type-checks/is-non-null-object.mjs +0 -1
- package/dist/type-checks/is-not-empty.cjs +0 -17
- package/dist/type-checks/is-not-empty.d.ts +0 -7
- package/dist/type-checks/is-not-empty.mjs +0 -1
- package/dist/type-checks/is-null.cjs +0 -14
- package/dist/type-checks/is-null.d.ts +0 -1
- package/dist/type-checks/is-null.mjs +0 -1
- package/dist/type-checks/is-number.cjs +0 -19
- package/dist/type-checks/is-number.d.ts +0 -15
- package/dist/type-checks/is-number.mjs +0 -1
- package/dist/type-checks/is-object-index.cjs +0 -17
- package/dist/type-checks/is-object-index.d.ts +0 -7
- package/dist/type-checks/is-object-index.mjs +0 -1
- package/dist/type-checks/is-object.cjs +0 -30
- package/dist/type-checks/is-object.d.ts +0 -30
- package/dist/type-checks/is-object.mjs +0 -1
- package/dist/type-checks/is-plain-object.cjs +0 -17
- package/dist/type-checks/is-plain-object.d.ts +0 -50
- package/dist/type-checks/is-plain-object.mjs +0 -1
- package/dist/type-checks/is-primitive.cjs +0 -14
- package/dist/type-checks/is-primitive.d.ts +0 -1
- package/dist/type-checks/is-primitive.mjs +0 -1
- package/dist/type-checks/is-promise.cjs +0 -12
- package/dist/type-checks/is-promise.d.ts +0 -17
- package/dist/type-checks/is-promise.mjs +0 -1
- package/dist/type-checks/is-react-element.cjs +0 -8
- package/dist/type-checks/is-react-element.d.ts +0 -1
- package/dist/type-checks/is-react-element.mjs +0 -1
- package/dist/type-checks/is-ref.cjs +0 -14
- package/dist/type-checks/is-ref.d.ts +0 -8
- package/dist/type-checks/is-ref.mjs +0 -1
- package/dist/type-checks/is-regexp.cjs +0 -10
- package/dist/type-checks/is-regexp.d.ts +0 -16
- package/dist/type-checks/is-regexp.mjs +0 -1
- package/dist/type-checks/is-select-option.cjs +0 -15
- package/dist/type-checks/is-select-option.d.ts +0 -8
- package/dist/type-checks/is-select-option.mjs +0 -1
- package/dist/type-checks/is-set-object.cjs +0 -15
- package/dist/type-checks/is-set-object.d.ts +0 -7
- package/dist/type-checks/is-set-object.mjs +0 -1
- package/dist/type-checks/is-set-string.cjs +0 -16
- package/dist/type-checks/is-set-string.d.ts +0 -7
- package/dist/type-checks/is-set-string.mjs +0 -1
- package/dist/type-checks/is-set.cjs +0 -15
- package/dist/type-checks/is-set.d.ts +0 -7
- package/dist/type-checks/is-set.mjs +0 -1
- package/dist/type-checks/is-string.cjs +0 -14
- package/dist/type-checks/is-string.d.ts +0 -1
- package/dist/type-checks/is-string.mjs +0 -1
- package/dist/type-checks/is-symbol.cjs +0 -14
- package/dist/type-checks/is-symbol.d.ts +0 -1
- package/dist/type-checks/is-symbol.mjs +0 -1
- package/dist/type-checks/is-typed-array.cjs +0 -9
- package/dist/type-checks/is-typed-array.d.ts +0 -1
- package/dist/type-checks/is-typed-array.mjs +0 -1
- package/dist/type-checks/is-typed.cjs +0 -16
- package/dist/type-checks/is-typed.d.ts +0 -8
- package/dist/type-checks/is-typed.mjs +0 -1
- package/dist/type-checks/is-undefined.cjs +0 -8
- package/dist/type-checks/is-undefined.d.ts +0 -1
- package/dist/type-checks/is-undefined.mjs +0 -1
- package/dist/type-checks/property-exists.cjs +0 -17
- package/dist/type-checks/property-exists.d.ts +0 -16
- package/dist/type-checks/property-exists.mjs +0 -1
- package/dist/type-checks/type-detect.cjs +0 -38
- package/dist/type-checks/type-detect.d.ts +0 -1
- package/dist/type-checks/type-detect.mjs +0 -1
- package/dist/utility-types/array.cjs +0 -9
- package/dist/utility-types/array.mjs +0 -1
- package/dist/utility-types/index.cjs +0 -214
- package/dist/utility-types/index.d.ts +0 -19
- package/dist/utility-types/index.mjs +0 -1
- /package/dist/{utility-types/async.cjs → array.cjs} +0 -0
- /package/dist/{utility-types/async.mjs → array.mjs} +0 -0
- /package/dist/{utility-types/configuration.cjs → async.cjs} +0 -0
- /package/dist/{utility-types/configuration.mjs → async.mjs} +0 -0
- /package/dist/{utility-types/base.cjs → base.cjs} +0 -0
- /package/dist/{utility-types/base.mjs → base.mjs} +0 -0
- /package/dist/{utility-types/form.cjs → configuration.cjs} +0 -0
- /package/dist/{utility-types/configuration.d.ts → configuration.d.ts} +0 -0
- /package/dist/{utility-types/form.mjs → configuration.mjs} +0 -0
- /package/dist/{utility-types/file.cjs → file.cjs} +0 -0
- /package/dist/{utility-types/file.d.ts → file.d.ts} +0 -0
- /package/dist/{utility-types/file.mjs → file.mjs} +0 -0
- /package/dist/{utility-types/json.cjs → form.cjs} +0 -0
- /package/dist/{utility-types/form.d.ts → form.d.ts} +0 -0
- /package/dist/{utility-types/json.mjs → form.mjs} +0 -0
- /package/dist/{utility-types/logic.cjs → json.cjs} +0 -0
- /package/dist/{utility-types/logic.mjs → json.mjs} +0 -0
- /package/dist/{utility-types/navigator.cjs → logic.cjs} +0 -0
- /package/dist/{utility-types/logic.d.ts → logic.d.ts} +0 -0
- /package/dist/{utility-types/navigator.mjs → logic.mjs} +0 -0
- /package/dist/{utility-types/messages.cjs → messages.cjs} +0 -0
- /package/dist/{utility-types/messages.d.ts → messages.d.ts} +0 -0
- /package/dist/{utility-types/messages.mjs → messages.mjs} +0 -0
- /package/dist/{utility-types/number.cjs → navigator.cjs} +0 -0
- /package/dist/{utility-types/navigator.d.ts → navigator.d.ts} +0 -0
- /package/dist/{utility-types/number.mjs → navigator.mjs} +0 -0
- /package/dist/{utility-types/object.cjs → number.cjs} +0 -0
- /package/dist/{utility-types/object.mjs → number.mjs} +0 -0
- /package/dist/{utility-types/package-json.cjs → object.cjs} +0 -0
- /package/dist/{utility-types/package-json.mjs → object.mjs} +0 -0
- /package/dist/{utility-types/string.cjs → package-json.cjs} +0 -0
- /package/dist/{utility-types/string.mjs → package-json.mjs} +0 -0
- /package/dist/{utility-types/package-manager.cjs → package-manager.cjs} +0 -0
- /package/dist/{utility-types/package-manager.d.ts → package-manager.d.ts} +0 -0
- /package/dist/{utility-types/package-manager.mjs → package-manager.mjs} +0 -0
- /package/dist/{utility-types/system.cjs → string.cjs} +0 -0
- /package/dist/{utility-types/system.mjs → string.mjs} +0 -0
- /package/dist/{utility-types/tsconfig.cjs → system.cjs} +0 -0
- /package/dist/{utility-types/system.d.ts → system.d.ts} +0 -0
- /package/dist/{utility-types/tsconfig.mjs → system.mjs} +0 -0
- /package/dist/{utility-types/utilities.cjs → tsconfig.cjs} +0 -0
- /package/dist/{utility-types/utilities.mjs → tsconfig.mjs} +0 -0
- /package/dist/{utility-types/user.cjs → user.cjs} +0 -0
- /package/dist/{utility-types/user.d.ts → user.d.ts} +0 -0
- /package/dist/{utility-types/user.mjs → user.mjs} +0 -0
- /package/dist/{utility-types/validations.cjs → utilities.cjs} +0 -0
- /package/dist/{utility-types/validations.mjs → utilities.mjs} +0 -0
- /package/dist/{utility-types/validations.d.ts → validations.d.ts} +0 -0
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks if `value` is classified as a `Date` object.
|
|
3
|
-
*
|
|
4
|
-
* @example
|
|
5
|
-
* ```typescript
|
|
6
|
-
* isDate(new Date)
|
|
7
|
-
* // => true
|
|
8
|
-
*
|
|
9
|
-
* isDate('Mon April 23 2012')
|
|
10
|
-
* // => false
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* @param value - The value to check.
|
|
14
|
-
* @returns Returns `true` if `obj` is a date object, else `false`.
|
|
15
|
-
*/
|
|
16
|
-
export declare const isDate: (value: unknown) => value is Date;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{getObjectTag as e}from"./get-object-tag";import{isObjectLike as o}from"./is-plain-object";export const isDate=t=>o(t)&&e(t)=="[object Date]";
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isDeepKey = isDeepKey;
|
|
7
|
-
exports.isKeyOrDeepKey = isKeyOrDeepKey;
|
|
8
|
-
function isDeepKey(e) {
|
|
9
|
-
switch (typeof e) {
|
|
10
|
-
case "number":
|
|
11
|
-
case "symbol":
|
|
12
|
-
return !1;
|
|
13
|
-
case "string":
|
|
14
|
-
return e.includes(".") || e.includes("[") || e.includes("]");
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
function isKeyOrDeepKey(e) {
|
|
18
|
-
switch (typeof e) {
|
|
19
|
-
case "number":
|
|
20
|
-
return !0;
|
|
21
|
-
case "symbol":
|
|
22
|
-
return !1;
|
|
23
|
-
case "string":
|
|
24
|
-
return !0;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { DeepKey } from "../utility-types/object";
|
|
2
|
-
/**
|
|
3
|
-
* Checks if a given key is a deep key.
|
|
4
|
-
*
|
|
5
|
-
* A deep key is a string that contains a dot (.) or square brackets with a property accessor.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* isDeepKey('a.b') // true
|
|
9
|
-
* isDeepKey('a[b]') // true
|
|
10
|
-
* isDeepKey('a') // false
|
|
11
|
-
* isDeepKey(123) // false
|
|
12
|
-
* isDeepKey('a.b.c') // true
|
|
13
|
-
* isDeepKey('a[b][c]') // true
|
|
14
|
-
*
|
|
15
|
-
* @param key - The key to check.
|
|
16
|
-
* @returns Returns true if the key is a deep key, otherwise false.
|
|
17
|
-
*/
|
|
18
|
-
export declare function isDeepKey(key: PropertyKey): key is DeepKey<any>;
|
|
19
|
-
/**
|
|
20
|
-
* Checks if a given key is a deep key or normal (shallow key).
|
|
21
|
-
*
|
|
22
|
-
* A deep key is a string that contains a dot (.) or square brackets with a property accessor.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* isDeepKey('a.b') // true
|
|
26
|
-
* isDeepKey('a[b]') // true
|
|
27
|
-
* isDeepKey('a') // true
|
|
28
|
-
* isDeepKey(123) // false
|
|
29
|
-
* isDeepKey('a.b.c') // true
|
|
30
|
-
* isDeepKey('a[b][c]') // true
|
|
31
|
-
*
|
|
32
|
-
* @param key - The key to check.
|
|
33
|
-
* @returns Returns true if the key is a deep key, otherwise false.
|
|
34
|
-
*/
|
|
35
|
-
export declare function isKeyOrDeepKey(key: PropertyKey): key is DeepKey<any>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function isDeepKey(e){switch(typeof e){case"number":case"symbol":return!1;case"string":return e.includes(".")||e.includes("[")||e.includes("]")}}export function isKeyOrDeepKey(e){switch(typeof e){case"number":return!0;case"symbol":return!1;case"string":return!0}}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isEmptyOrEmptyObject = exports.isEmptyObject = void 0;
|
|
7
|
-
var _isEmpty = require("./is-empty.cjs");
|
|
8
|
-
const isEmptyObject = t => {
|
|
9
|
-
try {
|
|
10
|
-
return !!t || Object.keys(t ?? {}).length === 0;
|
|
11
|
-
} catch {
|
|
12
|
-
return !0;
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
isEmptyOrEmptyObject = t => {
|
|
16
|
-
try {
|
|
17
|
-
return (0, _isEmpty.isEmpty)(t) || isEmptyObject(t);
|
|
18
|
-
} catch {
|
|
19
|
-
return !0;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
exports.isEmptyOrEmptyObject = isEmptyOrEmptyObject;
|
|
23
|
-
exports.isEmptyObject = isEmptyObject;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check if the provided value's type is `{}`
|
|
3
|
-
*
|
|
4
|
-
* @param value - The value to type check
|
|
5
|
-
* @returns An indicator specifying if the value provided is of type `{}`
|
|
6
|
-
*/
|
|
7
|
-
export declare const isEmptyObject: (value: unknown) => value is {};
|
|
8
|
-
/**
|
|
9
|
-
* Check if the provided value's type is `null` or `undefined` or `{}`
|
|
10
|
-
*
|
|
11
|
-
* @param value - The value to type check
|
|
12
|
-
* @returns An indicator specifying if the value provided is of type `null` or `undefined` or `{}`
|
|
13
|
-
*/
|
|
14
|
-
export declare const isEmptyOrEmptyObject: (value: unknown) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isEmpty as r}from"./is-empty";export const isEmptyObject=t=>{try{return!!t||Object.keys(t??{}).length===0}catch{return!0}},isEmptyOrEmptyObject=t=>{try{return r(t)||isEmptyObject(t)}catch{return!0}};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isEmptyString = void 0;
|
|
7
|
-
var _base = require("../utility-types/base.cjs");
|
|
8
|
-
var _isString = require("./is-string.cjs");
|
|
9
|
-
const isEmptyString = r => {
|
|
10
|
-
try {
|
|
11
|
-
return (0, _isString.isString)(r) && r === _base.EMPTY_STRING;
|
|
12
|
-
} catch {
|
|
13
|
-
return !1;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
exports.isEmptyString = isEmptyString;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{EMPTY_STRING as t}from"../utility-types/base";import{isString as n}from"./is-string";export const isEmptyString=r=>{try{return n(r)&&r===t}catch{return!1}};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isEmptyAnything = exports.isEmpty = void 0;
|
|
7
|
-
var _isDate = require("./is-date.cjs");
|
|
8
|
-
var _isFunction = require("./is-function.cjs");
|
|
9
|
-
var _isNull = require("./is-null.cjs");
|
|
10
|
-
var _isNumber = require("./is-number.cjs");
|
|
11
|
-
var _isSymbol = require("./is-symbol.cjs");
|
|
12
|
-
var _isUndefined = require("./is-undefined.cjs");
|
|
13
|
-
const isEmpty = r => {
|
|
14
|
-
try {
|
|
15
|
-
return (0, _isUndefined.isUndefined)(r) || (0, _isNull.isNull)(r);
|
|
16
|
-
} catch {
|
|
17
|
-
return !1;
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
isEmptyAnything = r => {
|
|
21
|
-
if (r === !0 || r === !1 || r == null) return !0;
|
|
22
|
-
if ((0, _isNumber.isNumber)(r)) return r === 0;
|
|
23
|
-
if ((0, _isDate.isDate)(r)) return Number.isNaN(r.getTime());
|
|
24
|
-
if ((0, _isFunction.isFunction)(r) || (0, _isSymbol.isSymbol)(r)) return !1;
|
|
25
|
-
const {
|
|
26
|
-
length: n
|
|
27
|
-
} = r;
|
|
28
|
-
if ((0, _isNumber.isNumber)(n)) return n === 0;
|
|
29
|
-
const {
|
|
30
|
-
size: i
|
|
31
|
-
} = r;
|
|
32
|
-
return (0, _isNumber.isNumber)(i) ? i === 0 : Object.keys(r).length === 0;
|
|
33
|
-
};
|
|
34
|
-
exports.isEmptyAnything = isEmptyAnything;
|
|
35
|
-
exports.isEmpty = isEmpty;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check if the provided value's type is `null` or `undefined`
|
|
3
|
-
*
|
|
4
|
-
* @param value - The value to type check
|
|
5
|
-
* @returns An indicator specifying if the value provided is of type `null` or `undefined`
|
|
6
|
-
*/
|
|
7
|
-
export declare const isEmpty: (value: unknown) => boolean;
|
|
8
|
-
export declare const isEmptyAnything: (value: any) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isDate as e}from"./is-date";import{isFunction as o}from"./is-function";import{isNull as s}from"./is-null";import{isNumber as t}from"./is-number";import{isSymbol as f}from"./is-symbol";import{isUndefined as m}from"./is-undefined";export const isEmpty=r=>{try{return m(r)||s(r)}catch{return!1}},isEmptyAnything=r=>{if(r===!0||r===!1||r==null)return!0;if(t(r))return r===0;if(e(r))return Number.isNaN(r.getTime());if(o(r)||f(r))return!1;const{length:n}=r;if(t(n))return n===0;const{size:i}=r;return t(i)?i===0:Object.keys(r).length===0};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isEqual = void 0;
|
|
7
|
-
const isEqual = (t, e) => {
|
|
8
|
-
if (Object.is(t, e)) return !0;
|
|
9
|
-
if (t instanceof Date && e instanceof Date) return t.getTime() === e.getTime();
|
|
10
|
-
if (t instanceof RegExp && e instanceof RegExp) return t.toString() === e.toString();
|
|
11
|
-
if (typeof t != "object" || t === null || typeof e != "object" || e === null) return !1;
|
|
12
|
-
const o = Reflect.ownKeys(t),
|
|
13
|
-
s = Reflect.ownKeys(e);
|
|
14
|
-
if (o.length !== s.length) return !1;
|
|
15
|
-
for (const n of o) if (!Reflect.has(e, n) || !isEqual(t[n], e[n])) return !1;
|
|
16
|
-
return !0;
|
|
17
|
-
};
|
|
18
|
-
exports.isEqual = isEqual;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isEqual: <TType>(x: TType, y: TType) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const isEqual=(t,e)=>{if(Object.is(t,e))return!0;if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(t instanceof RegExp&&e instanceof RegExp)return t.toString()===e.toString();if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const o=Reflect.ownKeys(t),s=Reflect.ownKeys(e);if(o.length!==s.length)return!1;for(const n of o)if(!Reflect.has(e,n)||!isEqual(t[n],e[n]))return!1;return!0};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isError = void 0;
|
|
7
|
-
var _getObjectTag = require("./get-object-tag.cjs");
|
|
8
|
-
var _isObject = require("./is-object.cjs");
|
|
9
|
-
var _isPlainObject = require("./is-plain-object.cjs");
|
|
10
|
-
const isError = r => {
|
|
11
|
-
if (!(0, _isObject.isObject)(r)) return !1;
|
|
12
|
-
const t = (0, _getObjectTag.getObjectTag)(r);
|
|
13
|
-
return t === "[object Error]" || t === "[object DOMException]" || typeof r?.message == "string" && typeof r?.name == "string" && !(0, _isPlainObject.isPlainObject)(r);
|
|
14
|
-
};
|
|
15
|
-
exports.isError = isError;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks if `obj` is an `Error`, `EvalError`, `RangeError`, `ReferenceError`,
|
|
3
|
-
* `SyntaxError`, `TypeError`, or `URIError` object.
|
|
4
|
-
*
|
|
5
|
-
* @example
|
|
6
|
-
* ```typescript
|
|
7
|
-
* isError(new Error)
|
|
8
|
-
* // => true
|
|
9
|
-
*
|
|
10
|
-
* isError(Error)
|
|
11
|
-
* // => false
|
|
12
|
-
* ```
|
|
13
|
-
*
|
|
14
|
-
* @param obj - The obj to check.
|
|
15
|
-
* @returns Returns `true` if `obj` is an error object, else `false`.
|
|
16
|
-
*/
|
|
17
|
-
export declare const isError: (obj: unknown) => obj is Error;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{getObjectTag as o}from"./get-object-tag";import{isObject as e}from"./is-object";import{isPlainObject as s}from"./is-plain-object";export const isError=r=>{if(!e(r))return!1;const t=o(r);return t==="[object Error]"||t==="[object DOMException]"||typeof r?.message=="string"&&typeof r?.name=="string"&&!s(r)};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isFileResult = void 0;
|
|
7
|
-
var _file = require("../utility-types/file.cjs");
|
|
8
|
-
var _isSetObject = require("./is-set-object.cjs");
|
|
9
|
-
var _isSetString = require("./is-set-string.cjs");
|
|
10
|
-
const isFileResult = t => (0, _isSetObject.isSetObject)(t) && "status" in t && Object.values(_file.FileStatus).includes(t.status) && ((0, _isSetString.isSetString)(t?.uri) || (0, _isSetObject.isSetObject)(t?.file));
|
|
11
|
-
exports.isFileResult = isFileResult;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FileResult } from "../utility-types/file";
|
|
2
|
-
/**
|
|
3
|
-
* Check if the provided value is a `FileResult` object
|
|
4
|
-
*
|
|
5
|
-
* @param value - The value to type check
|
|
6
|
-
* @returns An indicator specifying if the value provided is a `FileResult` object
|
|
7
|
-
*/
|
|
8
|
-
export declare const isFileResult: (value: any) => value is FileResult;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{FileStatus as i}from"../utility-types/file";import{isSetObject as s}from"./is-set-object";import{isSetString as e}from"./is-set-string";export const isFileResult=t=>s(t)&&"status"in t&&Object.values(i).includes(t.status)&&(e(t?.uri)||s(t?.file));
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Float } from "../utility-types/number";
|
|
2
|
-
/**
|
|
3
|
-
* Check if the provided value's type is a float
|
|
4
|
-
*
|
|
5
|
-
* @param value - The value to type check
|
|
6
|
-
* @returns An indicator specifying if the value provided is of type `number` and is a float
|
|
7
|
-
*/
|
|
8
|
-
export declare const isFloat: <T extends number>(value: T) => value is Float<T>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isNumber as t}from"./is-number";export const isFloat=o=>t(o)&&o%1!==0;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isAsyncFunction = isAsyncFunction;
|
|
7
|
-
exports.isFunction = void 0;
|
|
8
|
-
exports.isSyncFunction = isSyncFunction;
|
|
9
|
-
var _getObjectTag = require("./get-object-tag.cjs");
|
|
10
|
-
function isSyncFunction(n) {
|
|
11
|
-
return (0, _getObjectTag.getObjectTag)(n) === "[object Function]";
|
|
12
|
-
}
|
|
13
|
-
function isAsyncFunction(n) {
|
|
14
|
-
return (0, _getObjectTag.getObjectTag)(n) === "[object AsyncFunction]";
|
|
15
|
-
}
|
|
16
|
-
const isFunction = n => {
|
|
17
|
-
try {
|
|
18
|
-
return n instanceof Function || typeof n == "function" || !!(n?.constructor && n?.call && n?.apply) || isSyncFunction(n) || isAsyncFunction(n);
|
|
19
|
-
} catch {
|
|
20
|
-
return !1;
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
exports.isFunction = isFunction;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AnyFunction } from "../utility-types/base";
|
|
2
|
-
export declare function isSyncFunction(value?: any): value is AnyFunction;
|
|
3
|
-
export declare function isAsyncFunction(value?: any): value is AnyFunction;
|
|
4
|
-
/**
|
|
5
|
-
* Check if the provided value's type is `Function`
|
|
6
|
-
*
|
|
7
|
-
* @param value - The value to type check
|
|
8
|
-
* @returns An indicator specifying if the value provided is of type `Function`
|
|
9
|
-
*/
|
|
10
|
-
export declare const isFunction: (value: unknown) => value is AnyFunction;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{getObjectTag as t}from"./get-object-tag";export function isSyncFunction(n){return t(n)==="[object Function]"}export function isAsyncFunction(n){return t(n)==="[object AsyncFunction]"}export const isFunction=n=>{try{return n instanceof Function||typeof n=="function"||!!(n?.constructor&&n?.call&&n?.apply)||isSyncFunction(n)||isAsyncFunction(n)}catch{return!1}};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isInteger = void 0;
|
|
7
|
-
var _isNumber = require("./is-number.cjs");
|
|
8
|
-
var _isString = require("./is-string.cjs");
|
|
9
|
-
const isInteger = r => (0, _isNumber.isNumber)(r) && !(0, _isString.isString)(r) && r % 1 === 0;
|
|
10
|
-
exports.isInteger = isInteger;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Integer } from "../utility-types/number";
|
|
2
|
-
/**
|
|
3
|
-
* Check if the provided value's type is an integer
|
|
4
|
-
*
|
|
5
|
-
* @param value - The value to type check
|
|
6
|
-
* @returns An indicator specifying if the value provided is of type `number` and is an integer
|
|
7
|
-
*/
|
|
8
|
-
export declare const isInteger: <T extends number>(value: T) => value is Integer<T>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isNumber as e}from"./is-number";import{isString as t}from"./is-string";export const isInteger=r=>e(r)&&!t(r)&&r%1===0;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isMergeableObject = void 0;
|
|
7
|
-
var _isNonNullObject = require("./is-non-null-object.cjs");
|
|
8
|
-
var _isReactElement = require("./is-react-element.cjs");
|
|
9
|
-
const n = t => {
|
|
10
|
-
const e = Object.prototype.toString.call(t);
|
|
11
|
-
return e === "[object RegExp]" || e === "[object Date]" || (0, _isReactElement.isReactElement)(t);
|
|
12
|
-
};
|
|
13
|
-
const isMergeableObject = t => (0, _isNonNullObject.isNonNullObject)(t) && !n(t);
|
|
14
|
-
exports.isMergeableObject = isMergeableObject;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isMergeableObject: (value: any) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isNonNullObject as o}from"./is-non-null-object";import{isReactElement as r}from"./is-react-element";const n=t=>{const e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||r(t)};export const isMergeableObject=t=>o(t)&&!n(t);
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isNonNullObject = void 0;
|
|
7
|
-
var _isObject = require("./is-object.cjs");
|
|
8
|
-
var _isSet = require("./is-set.cjs");
|
|
9
|
-
const isNonNullObject = o => (0, _isSet.isSet)(o) && (0, _isObject.isObject)(o);
|
|
10
|
-
exports.isNonNullObject = isNonNullObject;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check if the provided value's type is `Object` and is not `null` or `undefined`
|
|
3
|
-
*
|
|
4
|
-
* @param value - The value to type check
|
|
5
|
-
* @returns An indicator specifying if the value provided is of type `Object` and is not `null` or `undefined`
|
|
6
|
-
*/
|
|
7
|
-
export declare const isNonNullObject: (value: any) => value is NonNullable<object>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isObject as t}from"./is-object";import{isSet as e}from"./is-set";export const isNonNullObject=o=>e(o)&&t(o);
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isNotEmpty = void 0;
|
|
7
|
-
var _isEmpty = require("./is-empty.cjs");
|
|
8
|
-
var _isEmptyObject = require("./is-empty-object.cjs");
|
|
9
|
-
var _isEmptyString = require("./is-empty-string.cjs");
|
|
10
|
-
const isNotEmpty = t => {
|
|
11
|
-
try {
|
|
12
|
-
return !(0, _isEmpty.isEmpty)(t) && !(0, _isEmptyString.isEmptyString)(t) && !(0, _isEmptyObject.isEmptyObject)(t);
|
|
13
|
-
} catch {
|
|
14
|
-
return !1;
|
|
15
|
-
}
|
|
16
|
-
};
|
|
17
|
-
exports.isNotEmpty = isNotEmpty;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The inverse of the `isEmptyObject` function
|
|
3
|
-
*
|
|
4
|
-
* @param value - The value to type check
|
|
5
|
-
* @returns An indicator specifying if the value provided is **NOT** of type `null` or `undefined` or `{}`
|
|
6
|
-
*/
|
|
7
|
-
export declare const isNotEmpty: (value: unknown) => value is NonNullable<unknown>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isEmpty as r}from"./is-empty";import{isEmptyObject as o}from"./is-empty-object";import{isEmptyString as n}from"./is-empty-string";export const isNotEmpty=t=>{try{return!r(t)&&!n(t)&&!o(t)}catch{return!1}};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isNull: (value: unknown) => value is null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const isNull=l=>{try{return l===null}catch{return!1}};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isAnyNumber = isAnyNumber;
|
|
7
|
-
exports.isNumber = void 0;
|
|
8
|
-
var _getObjectTag = require("./get-object-tag.cjs");
|
|
9
|
-
const isNumber = r => {
|
|
10
|
-
try {
|
|
11
|
-
return r instanceof Number || typeof r == "number" || Number(r) === r;
|
|
12
|
-
} catch {
|
|
13
|
-
return !1;
|
|
14
|
-
}
|
|
15
|
-
};
|
|
16
|
-
exports.isNumber = isNumber;
|
|
17
|
-
function isAnyNumber(r) {
|
|
18
|
-
return isNumber(r) || (0, _getObjectTag.getObjectTag)(r) === "[object Number]";
|
|
19
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { AnyNumber } from "../utility-types/base";
|
|
2
|
-
/**
|
|
3
|
-
* Check if the provided value's type is `number`
|
|
4
|
-
*
|
|
5
|
-
* @param value - The value to type check
|
|
6
|
-
* @returns An indicator specifying if the value provided is of type `number`
|
|
7
|
-
*/
|
|
8
|
-
export declare const isNumber: (value: unknown) => value is number;
|
|
9
|
-
/**
|
|
10
|
-
* Check if the provided value's type is `AnyNumber`
|
|
11
|
-
*
|
|
12
|
-
* @param value - The value to type check
|
|
13
|
-
* @returns An indicator specifying if the value provided is of type `AnyNumber`
|
|
14
|
-
*/
|
|
15
|
-
export declare function isAnyNumber(value?: any): value is AnyNumber;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{getObjectTag as e}from"./get-object-tag";export const isNumber=r=>{try{return r instanceof Number||typeof r=="number"||Number(r)===r}catch{return!1}};export function isAnyNumber(r){return isNumber(r)||e(r)==="[object Number]"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isObjectIndex = isObjectIndex;
|
|
7
|
-
const r = /^(?:0|[1-9]\d*)$/;
|
|
8
|
-
function isObjectIndex(e) {
|
|
9
|
-
switch (typeof e) {
|
|
10
|
-
case "number":
|
|
11
|
-
return Number.isInteger(e) && e >= 0 && e < Number.MAX_SAFE_INTEGER;
|
|
12
|
-
case "symbol":
|
|
13
|
-
return !1;
|
|
14
|
-
case "string":
|
|
15
|
-
return r.test(e);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks if the given value is an object index.
|
|
3
|
-
*
|
|
4
|
-
* @param value - The value to check.
|
|
5
|
-
* @returns Returns `true` if the value is an object index, otherwise `false`.
|
|
6
|
-
*/
|
|
7
|
-
export declare function isObjectIndex(value: PropertyKey): value is string | number | symbol;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const r=/^(?:0|[1-9]\d*)$/;export function isObjectIndex(e){switch(typeof e){case"number":return Number.isInteger(e)&&e>=0&&e<Number.MAX_SAFE_INTEGER;case"symbol":return!1;case"string":return r.test(e)}}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.isClass = isClass;
|
|
7
|
-
exports.isConventionalClass = isConventionalClass;
|
|
8
|
-
exports.isNativeClass = isNativeClass;
|
|
9
|
-
exports.isObject = void 0;
|
|
10
|
-
var _isPlainObject = require("./is-plain-object.cjs");
|
|
11
|
-
const n = /^class\s|^function\s+[A-Z]/,
|
|
12
|
-
o = /^function\s+[A-Z]/,
|
|
13
|
-
e = /^class\s/;
|
|
14
|
-
function isNativeClass(t) {
|
|
15
|
-
return typeof t == "function" && e.test(t.toString());
|
|
16
|
-
}
|
|
17
|
-
function isConventionalClass(t) {
|
|
18
|
-
return typeof t == "function" && o.test(t.toString());
|
|
19
|
-
}
|
|
20
|
-
function isClass(t) {
|
|
21
|
-
return typeof t == "function" && n.test(t.toString());
|
|
22
|
-
}
|
|
23
|
-
const isObject = t => {
|
|
24
|
-
try {
|
|
25
|
-
return typeof t == "object" || !!t && t?.constructor === Object || (0, _isPlainObject.isPlainObject)(t);
|
|
26
|
-
} catch {
|
|
27
|
-
return !1;
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
exports.isObject = isObject;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import type { NativeClass } from "../utility-types/base";
|
|
2
|
-
/** Is ES6+ class */
|
|
3
|
-
export declare function isNativeClass(value?: any): value is NativeClass;
|
|
4
|
-
/**
|
|
5
|
-
* Check if the provided value's type is a conventional class
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Is Conventional Class
|
|
9
|
-
* Looks for function with capital first letter MyClass
|
|
10
|
-
* First letter is the 9th character
|
|
11
|
-
* If changed, isClass must also be updated
|
|
12
|
-
*
|
|
13
|
-
* @param value - The value to type check
|
|
14
|
-
* @returns An indicator specifying if the value provided is a conventional class
|
|
15
|
-
*/
|
|
16
|
-
export declare function isConventionalClass(value?: any): value is Function;
|
|
17
|
-
/**
|
|
18
|
-
* Check if the provided value's type is `Object`
|
|
19
|
-
*
|
|
20
|
-
* @param value - The value to type check
|
|
21
|
-
* @returns An indicator specifying if the value provided is of type `Object`
|
|
22
|
-
*/
|
|
23
|
-
export declare function isClass(value?: any): value is Function | NativeClass;
|
|
24
|
-
/**
|
|
25
|
-
* Check if the provided value's type is `Object`
|
|
26
|
-
*
|
|
27
|
-
* @param value - The value to type check
|
|
28
|
-
* @returns An indicator specifying if the value provided is of type `Object`
|
|
29
|
-
*/
|
|
30
|
-
export declare const isObject: (value: unknown) => value is object;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{isPlainObject as s}from"./is-plain-object";const n=/^class\s|^function\s+[A-Z]/,o=/^function\s+[A-Z]/,e=/^class\s/;export function isNativeClass(t){return typeof t=="function"&&e.test(t.toString())}export function isConventionalClass(t){return typeof t=="function"&&o.test(t.toString())}export function isClass(t){return typeof t=="function"&&n.test(t.toString())}export const isObject=t=>{try{return typeof t=="object"||!!t&&t?.constructor===Object||s(t)}catch{return!1}};
|