@juisy/utils 3.0.0-beta.0
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/LICENSE +661 -0
- package/README.md +51 -0
- package/dist/assert/argsert.d.ts +92 -0
- package/dist/assert/argsert.js +45 -0
- package/dist/assert/assert.d.ts +457 -0
- package/dist/assert/assert.js +100 -0
- package/dist/constructor/apply-mixins.d.ts +15 -0
- package/dist/constructor/apply-mixins.js +23 -0
- package/dist/constructor/get-constructor-name.d.ts +19 -0
- package/dist/constructor/get-constructor-name.js +18 -0
- package/dist/date/date-format.d.ts +18 -0
- package/dist/date/date-format.js +15 -0
- package/dist/date/get-date-range.d.ts +38 -0
- package/dist/date/get-date-range.js +32 -0
- package/dist/date/get-duration-between-times.d.ts +13 -0
- package/dist/date/get-duration-between-times.js +20 -0
- package/dist/date/get-duration-between.d.ts +12 -0
- package/dist/date/get-duration-between.js +16 -0
- package/dist/date/get-i18n-timezone-value.d.ts +19 -0
- package/dist/date/get-i18n-timezone-value.js +27 -0
- package/dist/date/get-next-date-for-time.d.ts +10 -0
- package/dist/date/get-next-date-for-time.js +16 -0
- package/dist/date/get-utc-offset.d.ts +10 -0
- package/dist/date/get-utc-offset.js +15 -0
- package/dist/fs/get-file-urls.d.ts +12 -0
- package/dist/fs/get-file-urls.js +13 -0
- package/dist/fs/get-files-sync.d.ts +19 -0
- package/dist/fs/get-files-sync.js +23 -0
- package/dist/fs/get-files.d.ts +23 -0
- package/dist/fs/get-files.js +21 -0
- package/dist/fs/get-root-dir.d.ts +15 -0
- package/dist/fs/get-root-dir.js +12 -0
- package/dist/fs/is-directory.d.ts +13 -0
- package/dist/fs/is-directory.js +17 -0
- package/dist/fs/is-file.d.ts +13 -0
- package/dist/fs/is-file.js +17 -0
- package/dist/is/is-def.d.ts +20 -0
- package/dist/is/is-def.js +10 -0
- package/dist/is/is-valid-css-color.d.ts +11 -0
- package/dist/is/is-valid-css-color.js +10 -0
- package/dist/is/is.d.ts +456 -0
- package/dist/is/is.js +102 -0
- package/dist/misc/compose.d.ts +18 -0
- package/dist/misc/compose.js +31 -0
- package/dist/misc/detect-browser.d.ts +19 -0
- package/dist/misc/detect-browser.js +12 -0
- package/dist/misc/type-check.d.ts +19 -0
- package/dist/misc/type-check.js +39 -0
- package/dist/object/deep-merge.d.ts +21 -0
- package/dist/object/deep-merge.js +10 -0
- package/dist/object/deep-parse.d.ts +18 -0
- package/dist/object/deep-parse.js +15 -0
- package/dist/object/get.d.ts +24 -0
- package/dist/object/get.js +12 -0
- package/dist/path/is-posix.d.ts +17 -0
- package/dist/path/is-posix.js +12 -0
- package/dist/path/is-same-as.d.ts +21 -0
- package/dist/path/is-same-as.js +13 -0
- package/dist/path/is-win32.d.ts +17 -0
- package/dist/path/is-win32.js +10 -0
- package/dist/path/normalize.d.ts +16 -0
- package/dist/path/normalize.js +22 -0
- package/dist/path/resolve-abs-from-root.d.ts +14 -0
- package/dist/path/resolve-abs-from-root.js +17 -0
- package/dist/path/resolve-rel-from-root.d.ts +14 -0
- package/dist/path/resolve-rel-from-root.js +13 -0
- package/dist/path/resolve-rel.d.ts +21 -0
- package/dist/path/resolve-rel.js +16 -0
- package/dist/path/to-os-format.d.ts +12 -0
- package/dist/path/to-os-format.js +14 -0
- package/dist/path/to-posix.d.ts +16 -0
- package/dist/path/to-posix.js +12 -0
- package/dist/path/to-win32.d.ts +16 -0
- package/dist/path/to-win32.js +12 -0
- package/dist/random/random-alpha-numeric.d.ts +22 -0
- package/dist/random/random-alpha-numeric.js +12 -0
- package/dist/random/random-number.d.ts +23 -0
- package/dist/random/random-number.js +12 -0
- package/dist/string/camelcase.d.ts +22 -0
- package/dist/string/camelcase.js +12 -0
- package/dist/string/capitalize.d.ts +23 -0
- package/dist/string/capitalize.js +18 -0
- package/dist/string/constantcase.d.ts +16 -0
- package/dist/string/constantcase.js +12 -0
- package/dist/string/kebabcase.d.ts +22 -0
- package/dist/string/kebabcase.js +12 -0
- package/dist/string/lowercase.d.ts +22 -0
- package/dist/string/lowercase.js +12 -0
- package/dist/string/pascalcase.d.ts +16 -0
- package/dist/string/pascalcase.js +13 -0
- package/dist/string/snakecase.d.ts +22 -0
- package/dist/string/snakecase.js +12 -0
- package/dist/string/uppercase.d.ts +22 -0
- package/dist/string/uppercase.js +12 -0
- package/package.json +123 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module fs/is-file
|
|
3
|
+
* @importTarget ./fs/is-file
|
|
4
|
+
* @author Hervé Perchec
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Check if the given path is a file
|
|
8
|
+
* @param filePath - The target path to check
|
|
9
|
+
* @returns True if the path is file
|
|
10
|
+
* @envCompat Node
|
|
11
|
+
*/
|
|
12
|
+
export declare function isFile(filePath: string): Promise<boolean>;
|
|
13
|
+
export default isFile;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* juisy v3.0.0-beta.0
|
|
3
|
+
* Copyright © 2022-Present Hervé Perchec
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import fs from 'fs-extra';
|
|
7
|
+
|
|
8
|
+
async function isFile(filePath) {
|
|
9
|
+
try {
|
|
10
|
+
const stats = await fs.stat(filePath);
|
|
11
|
+
return stats.isFile();
|
|
12
|
+
} catch (err) {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { isFile as default, isFile };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module is/is-def
|
|
3
|
+
* @importTarget ./is/is-def
|
|
4
|
+
* @author Hervé Perchec
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Type for non undefined value
|
|
8
|
+
*/
|
|
9
|
+
export type NonUndefined<T> = T extends undefined ? never : T;
|
|
10
|
+
/**
|
|
11
|
+
* Check if value is defined (!== undefined)
|
|
12
|
+
* @param value - The variable to check
|
|
13
|
+
* @returns Returns true if value is defined (!== undefined)
|
|
14
|
+
* @envCompat Browser
|
|
15
|
+
* @envCompat Node
|
|
16
|
+
* @example
|
|
17
|
+
* isDef(value) // true if value is defined
|
|
18
|
+
*/
|
|
19
|
+
export declare function isDef<T = unknown>(value: T): value is NonUndefined<T>;
|
|
20
|
+
export default isDef;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Property } from 'csstype';
|
|
2
|
+
/**
|
|
3
|
+
* Asserts value is a valid CSS color value
|
|
4
|
+
* @param value - The value to check
|
|
5
|
+
* @envCompat Browser
|
|
6
|
+
* @example
|
|
7
|
+
* isValidCSSColor('red') // true
|
|
8
|
+
* isValidCSSColor('#fff') // true
|
|
9
|
+
*/
|
|
10
|
+
export declare function isValidCSSColor(value: string): value is Property.Color;
|
|
11
|
+
export default isValidCSSColor;
|
package/dist/is/is.d.ts
ADDED
|
@@ -0,0 +1,456 @@
|
|
|
1
|
+
import { default as is, isAll as _isAll, isAny as _isAny, isArray as _isArray, isArrayBuffer as _isArrayBuffer, isArrayLike as _isArrayLike, isAsyncFunction as _isAsyncFunction, isAsyncGenerator as _isAsyncGenerator, isAsyncGeneratorFunction as _isAsyncGeneratorFunction, isAsyncIterable as _isAsyncIterable, isBigint as _isBigint, isBigInt64Array as _isBigInt64Array, isBigUint64Array as _isBigUint64Array, isBlob as _isBlob, isBoolean as _isBoolean, isBoundFunction as _isBoundFunction, isBuffer as _isBuffer, isClass as _isClass, isDataView as _isDataView, isDate as _isDate, isDirectInstanceOf as _isDirectInstanceOf, isEmptyArray as _isEmptyArray, isEmptyMap as _isEmptyMap, isEmptyObject as _isEmptyObject, isEmptySet as _isEmptySet, isEmptyString as _isEmptyString, isEmptyStringOrWhitespace as _isEmptyStringOrWhitespace, isEnumCase as _isEnumCase, isError as _isError, isEvenInteger as _isEvenInteger, isFalsy as _isFalsy, isFloat32Array as _isFloat32Array, isFloat64Array as _isFloat64Array, isFormData as _isFormData, isFunction as _isFunction, isGenerator as _isGenerator, isGeneratorFunction as _isGeneratorFunction, isHtmlElement as _isHtmlElement, isInfinite as _isInfinite, isInRange as _isInRange, isInt16Array as _isInt16Array, isInt32Array as _isInt32Array, isInt8Array as _isInt8Array, isInteger as _isInteger, isIterable as _isIterable, isMap as _isMap, isNan as _isNan, isNativePromise as _isNativePromise, isNegativeNumber as _isNegativeNumber, isNodeStream as _isNodeStream, isNonEmptyArray as _isNonEmptyArray, isNonEmptyMap as _isNonEmptyMap, isNonEmptyObject as _isNonEmptyObject, isNonEmptySet as _isNonEmptySet, isNonEmptyString as _isNonEmptyString, isNonEmptyStringAndNotWhitespace as _isNonEmptyStringAndNotWhitespace, isNull as _isNull, isNullOrUndefined as _isNullOrUndefined, isNumber as _isNumber, isNumericString as _isNumericString, isObject as _isObject, isObservable as _isObservable, isOddInteger as _isOddInteger, isPlainObject as _isPlainObject, isPositiveNumber as _isPositiveNumber, isPrimitive as _isPrimitive, isPromise as _isPromise, isPropertyKey as _isPropertyKey, isRegExp as _isRegExp, isSafeInteger as _isSafeInteger, isSet as _isSet, isSharedArrayBuffer as _isSharedArrayBuffer, isString as _isString, isSymbol as _isSymbol, isTruthy as _isTruthy, isTupleLike as _isTupleLike, isTypedArray as _isTypedArray, isUint16Array as _isUint16Array, isUint32Array as _isUint32Array, isUint8Array as _isUint8Array, isUint8ClampedArray as _isUint8ClampedArray, isUndefined as _isUndefined, isUrlInstance as _isUrlInstance, isUrlSearchParams as _isUrlSearchParams, isUrlString as _isUrlString, isValidDate as _isValidDate, isValidLength as _isValidLength, isWeakMap as _isWeakMap, isWeakRef as _isWeakRef, isWeakSet as _isWeakSet, isWhitespaceString as _isWhitespaceString } from '@sindresorhus/is';
|
|
2
|
+
export { default as isDef } from './is-def';
|
|
3
|
+
export { default as isValidCSSColor } from './is-valid-css-color';
|
|
4
|
+
/**
|
|
5
|
+
* @function
|
|
6
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
7
|
+
*/
|
|
8
|
+
export declare const isAll: typeof _isAll;
|
|
9
|
+
/**
|
|
10
|
+
* @function
|
|
11
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
12
|
+
*/
|
|
13
|
+
export declare const isAny: typeof _isAny;
|
|
14
|
+
/**
|
|
15
|
+
* @function
|
|
16
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
17
|
+
*/
|
|
18
|
+
export declare const isArray: typeof _isArray;
|
|
19
|
+
/**
|
|
20
|
+
* @function
|
|
21
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
22
|
+
*/
|
|
23
|
+
export declare const isArrayBuffer: typeof _isArrayBuffer;
|
|
24
|
+
/**
|
|
25
|
+
* @function
|
|
26
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
27
|
+
*/
|
|
28
|
+
export declare const isArrayLike: typeof _isArrayLike;
|
|
29
|
+
/**
|
|
30
|
+
* @function
|
|
31
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
32
|
+
*/
|
|
33
|
+
export declare const isAsyncFunction: typeof _isAsyncFunction;
|
|
34
|
+
/**
|
|
35
|
+
* @function
|
|
36
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
37
|
+
*/
|
|
38
|
+
export declare const isAsyncGenerator: typeof _isAsyncGenerator;
|
|
39
|
+
/**
|
|
40
|
+
* @function
|
|
41
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
42
|
+
*/
|
|
43
|
+
export declare const isAsyncGeneratorFunction: typeof _isAsyncGeneratorFunction;
|
|
44
|
+
/**
|
|
45
|
+
* @function
|
|
46
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
47
|
+
*/
|
|
48
|
+
export declare const isAsyncIterable: typeof _isAsyncIterable;
|
|
49
|
+
/**
|
|
50
|
+
* @function
|
|
51
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
52
|
+
*/
|
|
53
|
+
export declare const isBigint: typeof _isBigint;
|
|
54
|
+
/**
|
|
55
|
+
* @function
|
|
56
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
57
|
+
*/
|
|
58
|
+
export declare const isBigInt64Array: typeof _isBigInt64Array;
|
|
59
|
+
/**
|
|
60
|
+
* @function
|
|
61
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
62
|
+
*/
|
|
63
|
+
export declare const isBigUint64Array: typeof _isBigUint64Array;
|
|
64
|
+
/**
|
|
65
|
+
* @function
|
|
66
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
67
|
+
*/
|
|
68
|
+
export declare const isBlob: typeof _isBlob;
|
|
69
|
+
/**
|
|
70
|
+
* @function
|
|
71
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
72
|
+
*/
|
|
73
|
+
export declare const isBoolean: typeof _isBoolean;
|
|
74
|
+
/**
|
|
75
|
+
* @function
|
|
76
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
77
|
+
*/
|
|
78
|
+
export declare const isBoundFunction: typeof _isBoundFunction;
|
|
79
|
+
/**
|
|
80
|
+
* @function
|
|
81
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
82
|
+
*/
|
|
83
|
+
export declare const isBuffer: typeof _isBuffer;
|
|
84
|
+
/**
|
|
85
|
+
* @function
|
|
86
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
87
|
+
*/
|
|
88
|
+
export declare const isClass: typeof _isClass;
|
|
89
|
+
/**
|
|
90
|
+
* @function
|
|
91
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
92
|
+
*/
|
|
93
|
+
export declare const isDataView: typeof _isDataView;
|
|
94
|
+
/**
|
|
95
|
+
* @function
|
|
96
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
97
|
+
*/
|
|
98
|
+
export declare const isDate: typeof _isDate;
|
|
99
|
+
/**
|
|
100
|
+
* @function
|
|
101
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
102
|
+
*/
|
|
103
|
+
export declare const isDirectInstanceOf: typeof _isDirectInstanceOf;
|
|
104
|
+
/**
|
|
105
|
+
* @function
|
|
106
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
107
|
+
*/
|
|
108
|
+
export declare const isEmptyArray: typeof _isEmptyArray;
|
|
109
|
+
/**
|
|
110
|
+
* @function
|
|
111
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
112
|
+
*/
|
|
113
|
+
export declare const isEmptyMap: typeof _isEmptyMap;
|
|
114
|
+
/**
|
|
115
|
+
* @function
|
|
116
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
117
|
+
*/
|
|
118
|
+
export declare const isEmptyObject: typeof _isEmptyObject;
|
|
119
|
+
/**
|
|
120
|
+
* @function
|
|
121
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
122
|
+
*/
|
|
123
|
+
export declare const isEmptySet: typeof _isEmptySet;
|
|
124
|
+
/**
|
|
125
|
+
* @function
|
|
126
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
127
|
+
*/
|
|
128
|
+
export declare const isEmptyString: typeof _isEmptyString;
|
|
129
|
+
/**
|
|
130
|
+
* @function
|
|
131
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
132
|
+
*/
|
|
133
|
+
export declare const isEmptyStringOrWhitespace: typeof _isEmptyStringOrWhitespace;
|
|
134
|
+
/**
|
|
135
|
+
* @function
|
|
136
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
137
|
+
*/
|
|
138
|
+
export declare const isEnumCase: typeof _isEnumCase;
|
|
139
|
+
/**
|
|
140
|
+
* @function
|
|
141
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
142
|
+
*/
|
|
143
|
+
export declare const isError: typeof _isError;
|
|
144
|
+
/**
|
|
145
|
+
* @function
|
|
146
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
147
|
+
*/
|
|
148
|
+
export declare const isEvenInteger: typeof _isEvenInteger;
|
|
149
|
+
/**
|
|
150
|
+
* @function
|
|
151
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
152
|
+
*/
|
|
153
|
+
export declare const isFalsy: typeof _isFalsy;
|
|
154
|
+
/**
|
|
155
|
+
* @function
|
|
156
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
157
|
+
*/
|
|
158
|
+
export declare const isFloat32Array: typeof _isFloat32Array;
|
|
159
|
+
/**
|
|
160
|
+
* @function
|
|
161
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
162
|
+
*/
|
|
163
|
+
export declare const isFloat64Array: typeof _isFloat64Array;
|
|
164
|
+
/**
|
|
165
|
+
* @function
|
|
166
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
167
|
+
*/
|
|
168
|
+
export declare const isFormData: typeof _isFormData;
|
|
169
|
+
/**
|
|
170
|
+
* @function
|
|
171
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
172
|
+
*/
|
|
173
|
+
export declare const isFunction: typeof _isFunction;
|
|
174
|
+
/**
|
|
175
|
+
* @function
|
|
176
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
177
|
+
*/
|
|
178
|
+
export declare const isGenerator: typeof _isGenerator;
|
|
179
|
+
/**
|
|
180
|
+
* @function
|
|
181
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
182
|
+
*/
|
|
183
|
+
export declare const isGeneratorFunction: typeof _isGeneratorFunction;
|
|
184
|
+
/**
|
|
185
|
+
* @function
|
|
186
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
187
|
+
*/
|
|
188
|
+
export declare const isHtmlElement: typeof _isHtmlElement;
|
|
189
|
+
/**
|
|
190
|
+
* @function
|
|
191
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
192
|
+
*/
|
|
193
|
+
export declare const isInfinite: typeof _isInfinite;
|
|
194
|
+
/**
|
|
195
|
+
* @function
|
|
196
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
197
|
+
*/
|
|
198
|
+
export declare const isInRange: typeof _isInRange;
|
|
199
|
+
/**
|
|
200
|
+
* @function
|
|
201
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
202
|
+
*/
|
|
203
|
+
export declare const isInt16Array: typeof _isInt16Array;
|
|
204
|
+
/**
|
|
205
|
+
* @function
|
|
206
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
207
|
+
*/
|
|
208
|
+
export declare const isInt32Array: typeof _isInt32Array;
|
|
209
|
+
/**
|
|
210
|
+
* @function
|
|
211
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
212
|
+
*/
|
|
213
|
+
export declare const isInt8Array: typeof _isInt8Array;
|
|
214
|
+
/**
|
|
215
|
+
* @function
|
|
216
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
217
|
+
*/
|
|
218
|
+
export declare const isInteger: typeof _isInteger;
|
|
219
|
+
/**
|
|
220
|
+
* @function
|
|
221
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
222
|
+
*/
|
|
223
|
+
export declare const isIterable: typeof _isIterable;
|
|
224
|
+
/**
|
|
225
|
+
* @function
|
|
226
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
227
|
+
*/
|
|
228
|
+
export declare const isMap: typeof _isMap;
|
|
229
|
+
/**
|
|
230
|
+
* @function
|
|
231
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
232
|
+
*/
|
|
233
|
+
export declare const isNan: typeof _isNan;
|
|
234
|
+
/**
|
|
235
|
+
* @function
|
|
236
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
237
|
+
*/
|
|
238
|
+
export declare const isNativePromise: typeof _isNativePromise;
|
|
239
|
+
/**
|
|
240
|
+
* @function
|
|
241
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
242
|
+
*/
|
|
243
|
+
export declare const isNegativeNumber: typeof _isNegativeNumber;
|
|
244
|
+
/**
|
|
245
|
+
* @function
|
|
246
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
247
|
+
*/
|
|
248
|
+
export declare const isNodeStream: typeof _isNodeStream;
|
|
249
|
+
/**
|
|
250
|
+
* @function
|
|
251
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
252
|
+
*/
|
|
253
|
+
export declare const isNonEmptyArray: typeof _isNonEmptyArray;
|
|
254
|
+
/**
|
|
255
|
+
* @function
|
|
256
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
257
|
+
*/
|
|
258
|
+
export declare const isNonEmptyMap: typeof _isNonEmptyMap;
|
|
259
|
+
/**
|
|
260
|
+
* @function
|
|
261
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
262
|
+
*/
|
|
263
|
+
export declare const isNonEmptyObject: typeof _isNonEmptyObject;
|
|
264
|
+
/**
|
|
265
|
+
* @function
|
|
266
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
267
|
+
*/
|
|
268
|
+
export declare const isNonEmptySet: typeof _isNonEmptySet;
|
|
269
|
+
/**
|
|
270
|
+
* @function
|
|
271
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
272
|
+
*/
|
|
273
|
+
export declare const isNonEmptyString: typeof _isNonEmptyString;
|
|
274
|
+
/**
|
|
275
|
+
* @function
|
|
276
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
277
|
+
*/
|
|
278
|
+
export declare const isNonEmptyStringAndNotWhitespace: typeof _isNonEmptyStringAndNotWhitespace;
|
|
279
|
+
/**
|
|
280
|
+
* @function
|
|
281
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
282
|
+
*/
|
|
283
|
+
export declare const isNull: typeof _isNull;
|
|
284
|
+
/**
|
|
285
|
+
* @function
|
|
286
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
287
|
+
*/
|
|
288
|
+
export declare const isNullOrUndefined: typeof _isNullOrUndefined;
|
|
289
|
+
/**
|
|
290
|
+
* @function
|
|
291
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
292
|
+
*/
|
|
293
|
+
export declare const isNumber: typeof _isNumber;
|
|
294
|
+
/**
|
|
295
|
+
* @function
|
|
296
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
297
|
+
*/
|
|
298
|
+
export declare const isNumericString: typeof _isNumericString;
|
|
299
|
+
/**
|
|
300
|
+
* @function
|
|
301
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
302
|
+
*/
|
|
303
|
+
export declare const isObject: typeof _isObject;
|
|
304
|
+
/**
|
|
305
|
+
* @function
|
|
306
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
307
|
+
*/
|
|
308
|
+
export declare const isObservable: typeof _isObservable;
|
|
309
|
+
/**
|
|
310
|
+
* @function
|
|
311
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
312
|
+
*/
|
|
313
|
+
export declare const isOddInteger: typeof _isOddInteger;
|
|
314
|
+
/**
|
|
315
|
+
* @function
|
|
316
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
317
|
+
*/
|
|
318
|
+
export declare const isPlainObject: typeof _isPlainObject;
|
|
319
|
+
/**
|
|
320
|
+
* @function
|
|
321
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
322
|
+
*/
|
|
323
|
+
export declare const isPositiveNumber: typeof _isPositiveNumber;
|
|
324
|
+
/**
|
|
325
|
+
* @function
|
|
326
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
327
|
+
*/
|
|
328
|
+
export declare const isPrimitive: typeof _isPrimitive;
|
|
329
|
+
/**
|
|
330
|
+
* @function
|
|
331
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
332
|
+
*/
|
|
333
|
+
export declare const isPromise: typeof _isPromise;
|
|
334
|
+
/**
|
|
335
|
+
* @function
|
|
336
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
337
|
+
*/
|
|
338
|
+
export declare const isPropertyKey: typeof _isPropertyKey;
|
|
339
|
+
/**
|
|
340
|
+
* @function
|
|
341
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
342
|
+
*/
|
|
343
|
+
export declare const isRegExp: typeof _isRegExp;
|
|
344
|
+
/**
|
|
345
|
+
* @function
|
|
346
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
347
|
+
*/
|
|
348
|
+
export declare const isSafeInteger: typeof _isSafeInteger;
|
|
349
|
+
/**
|
|
350
|
+
* @function
|
|
351
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
352
|
+
*/
|
|
353
|
+
export declare const isSet: typeof _isSet;
|
|
354
|
+
/**
|
|
355
|
+
* @function
|
|
356
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
357
|
+
*/
|
|
358
|
+
export declare const isSharedArrayBuffer: typeof _isSharedArrayBuffer;
|
|
359
|
+
/**
|
|
360
|
+
* @function
|
|
361
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
362
|
+
*/
|
|
363
|
+
export declare const isString: typeof _isString;
|
|
364
|
+
/**
|
|
365
|
+
* @function
|
|
366
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
367
|
+
*/
|
|
368
|
+
export declare const isSymbol: typeof _isSymbol;
|
|
369
|
+
/**
|
|
370
|
+
* @function
|
|
371
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
372
|
+
*/
|
|
373
|
+
export declare const isTruthy: typeof _isTruthy;
|
|
374
|
+
/**
|
|
375
|
+
* @function
|
|
376
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
377
|
+
*/
|
|
378
|
+
export declare const isTupleLike: typeof _isTupleLike;
|
|
379
|
+
/**
|
|
380
|
+
* @function
|
|
381
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
382
|
+
*/
|
|
383
|
+
export declare const isTypedArray: typeof _isTypedArray;
|
|
384
|
+
/**
|
|
385
|
+
* @function
|
|
386
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
387
|
+
*/
|
|
388
|
+
export declare const isUint16Array: typeof _isUint16Array;
|
|
389
|
+
/**
|
|
390
|
+
* @function
|
|
391
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
392
|
+
*/
|
|
393
|
+
export declare const isUint32Array: typeof _isUint32Array;
|
|
394
|
+
/**
|
|
395
|
+
* @function
|
|
396
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
397
|
+
*/
|
|
398
|
+
export declare const isUint8Array: typeof _isUint8Array;
|
|
399
|
+
/**
|
|
400
|
+
* @function
|
|
401
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
402
|
+
*/
|
|
403
|
+
export declare const isUint8ClampedArray: typeof _isUint8ClampedArray;
|
|
404
|
+
/**
|
|
405
|
+
* @function
|
|
406
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
407
|
+
*/
|
|
408
|
+
export declare const isUndefined: typeof _isUndefined;
|
|
409
|
+
/**
|
|
410
|
+
* @function
|
|
411
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
412
|
+
*/
|
|
413
|
+
export declare const isUrlInstance: typeof _isUrlInstance;
|
|
414
|
+
/**
|
|
415
|
+
* @function
|
|
416
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
417
|
+
*/
|
|
418
|
+
export declare const isUrlSearchParams: typeof _isUrlSearchParams;
|
|
419
|
+
/**
|
|
420
|
+
* @function
|
|
421
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
422
|
+
*/
|
|
423
|
+
export declare const isUrlString: typeof _isUrlString;
|
|
424
|
+
/**
|
|
425
|
+
* @function
|
|
426
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
427
|
+
*/
|
|
428
|
+
export declare const isValidDate: typeof _isValidDate;
|
|
429
|
+
/**
|
|
430
|
+
* @function
|
|
431
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
432
|
+
*/
|
|
433
|
+
export declare const isValidLength: typeof _isValidLength;
|
|
434
|
+
/**
|
|
435
|
+
* @function
|
|
436
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
437
|
+
*/
|
|
438
|
+
export declare const isWeakMap: typeof _isWeakMap;
|
|
439
|
+
/**
|
|
440
|
+
* @function
|
|
441
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
442
|
+
*/
|
|
443
|
+
export declare const isWeakRef: typeof _isWeakRef;
|
|
444
|
+
/**
|
|
445
|
+
* @function
|
|
446
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
447
|
+
*/
|
|
448
|
+
export declare const isWeakSet: typeof _isWeakSet;
|
|
449
|
+
/**
|
|
450
|
+
* @function
|
|
451
|
+
* @see [\@sindresorhus/is](https://www.npmjs.com/package/\@sindresorhus/is) package
|
|
452
|
+
*/
|
|
453
|
+
export declare const isWhitespaceString: typeof _isWhitespaceString;
|
|
454
|
+
export { isUndefined as isUndef };
|
|
455
|
+
export { default as is } from '@sindresorhus/is';
|
|
456
|
+
export default is;
|
package/dist/is/is.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* juisy v3.0.0-beta.0
|
|
3
|
+
* Copyright © 2022-Present Hervé Perchec
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import is, { isAll as isAll$1, isAny as isAny$1, isArray as isArray$1, isArrayBuffer as isArrayBuffer$1, isArrayLike as isArrayLike$1, isAsyncFunction as isAsyncFunction$1, isAsyncGenerator as isAsyncGenerator$1, isAsyncGeneratorFunction as isAsyncGeneratorFunction$1, isAsyncIterable as isAsyncIterable$1, isBigInt64Array as isBigInt64Array$1, isBigUint64Array as isBigUint64Array$1, isBigint as isBigint$1, isBlob as isBlob$1, isBoolean as isBoolean$1, isBoundFunction as isBoundFunction$1, isBuffer as isBuffer$1, isClass as isClass$1, isDataView as isDataView$1, isDate as isDate$1, isDirectInstanceOf as isDirectInstanceOf$1, isEmptyArray as isEmptyArray$1, isEmptyMap as isEmptyMap$1, isEmptyObject as isEmptyObject$1, isEmptySet as isEmptySet$1, isEmptyString as isEmptyString$1, isEmptyStringOrWhitespace as isEmptyStringOrWhitespace$1, isEnumCase as isEnumCase$1, isError as isError$1, isEvenInteger as isEvenInteger$1, isFalsy as isFalsy$1, isFloat32Array as isFloat32Array$1, isFloat64Array as isFloat64Array$1, isFormData as isFormData$1, isFunction as isFunction$1, isGenerator as isGenerator$1, isGeneratorFunction as isGeneratorFunction$1, isHtmlElement as isHtmlElement$1, isInRange as isInRange$1, isInfinite as isInfinite$1, isInt16Array as isInt16Array$1, isInt32Array as isInt32Array$1, isInt8Array as isInt8Array$1, isInteger as isInteger$1, isIterable as isIterable$1, isMap as isMap$1, isNan as isNan$1, isNativePromise as isNativePromise$1, isNegativeNumber as isNegativeNumber$1, isNodeStream as isNodeStream$1, isNonEmptyArray as isNonEmptyArray$1, isNonEmptyMap as isNonEmptyMap$1, isNonEmptyObject as isNonEmptyObject$1, isNonEmptySet as isNonEmptySet$1, isNonEmptyString as isNonEmptyString$1, isNonEmptyStringAndNotWhitespace as isNonEmptyStringAndNotWhitespace$1, isNull as isNull$1, isNullOrUndefined as isNullOrUndefined$1, isNumber as isNumber$1, isNumericString as isNumericString$1, isObject as isObject$1, isObservable as isObservable$1, isOddInteger as isOddInteger$1, isPlainObject as isPlainObject$1, isPositiveNumber as isPositiveNumber$1, isPrimitive as isPrimitive$1, isPromise as isPromise$1, isPropertyKey as isPropertyKey$1, isRegExp as isRegExp$1, isSafeInteger as isSafeInteger$1, isSet as isSet$1, isSharedArrayBuffer as isSharedArrayBuffer$1, isString as isString$1, isSymbol as isSymbol$1, isTruthy as isTruthy$1, isTupleLike as isTupleLike$1, isTypedArray as isTypedArray$1, isUint16Array as isUint16Array$1, isUint32Array as isUint32Array$1, isUint8Array as isUint8Array$1, isUint8ClampedArray as isUint8ClampedArray$1, isUndefined as isUndefined$1, isUrlInstance as isUrlInstance$1, isUrlSearchParams as isUrlSearchParams$1, isUrlString as isUrlString$1, isValidDate as isValidDate$1, isValidLength as isValidLength$1, isWeakMap as isWeakMap$1, isWeakRef as isWeakRef$1, isWeakSet as isWeakSet$1, isWhitespaceString as isWhitespaceString$1 } from '@sindresorhus/is';
|
|
7
|
+
export { default, default as is } from '@sindresorhus/is';
|
|
8
|
+
export { default as isDef } from './is-def.js';
|
|
9
|
+
export { default as isValidCSSColor } from './is-valid-css-color.js';
|
|
10
|
+
|
|
11
|
+
const isAll = isAll$1;
|
|
12
|
+
const isAny = isAny$1;
|
|
13
|
+
const isArray = isArray$1;
|
|
14
|
+
const isArrayBuffer = isArrayBuffer$1;
|
|
15
|
+
const isArrayLike = isArrayLike$1;
|
|
16
|
+
const isAsyncFunction = isAsyncFunction$1;
|
|
17
|
+
const isAsyncGenerator = isAsyncGenerator$1;
|
|
18
|
+
const isAsyncGeneratorFunction = isAsyncGeneratorFunction$1;
|
|
19
|
+
const isAsyncIterable = isAsyncIterable$1;
|
|
20
|
+
const isBigint = isBigint$1;
|
|
21
|
+
const isBigInt64Array = isBigInt64Array$1;
|
|
22
|
+
const isBigUint64Array = isBigUint64Array$1;
|
|
23
|
+
const isBlob = isBlob$1;
|
|
24
|
+
const isBoolean = isBoolean$1;
|
|
25
|
+
const isBoundFunction = isBoundFunction$1;
|
|
26
|
+
const isBuffer = isBuffer$1;
|
|
27
|
+
const isClass = isClass$1;
|
|
28
|
+
const isDataView = isDataView$1;
|
|
29
|
+
const isDate = isDate$1;
|
|
30
|
+
const isDirectInstanceOf = isDirectInstanceOf$1;
|
|
31
|
+
const isEmptyArray = isEmptyArray$1;
|
|
32
|
+
const isEmptyMap = isEmptyMap$1;
|
|
33
|
+
const isEmptyObject = isEmptyObject$1;
|
|
34
|
+
const isEmptySet = isEmptySet$1;
|
|
35
|
+
const isEmptyString = isEmptyString$1;
|
|
36
|
+
const isEmptyStringOrWhitespace = isEmptyStringOrWhitespace$1;
|
|
37
|
+
const isEnumCase = isEnumCase$1;
|
|
38
|
+
const isError = isError$1;
|
|
39
|
+
const isEvenInteger = isEvenInteger$1;
|
|
40
|
+
const isFalsy = isFalsy$1;
|
|
41
|
+
const isFloat32Array = isFloat32Array$1;
|
|
42
|
+
const isFloat64Array = isFloat64Array$1;
|
|
43
|
+
const isFormData = isFormData$1;
|
|
44
|
+
const isFunction = isFunction$1;
|
|
45
|
+
const isGenerator = isGenerator$1;
|
|
46
|
+
const isGeneratorFunction = isGeneratorFunction$1;
|
|
47
|
+
const isHtmlElement = isHtmlElement$1;
|
|
48
|
+
const isInfinite = isInfinite$1;
|
|
49
|
+
const isInRange = isInRange$1;
|
|
50
|
+
const isInt16Array = isInt16Array$1;
|
|
51
|
+
const isInt32Array = isInt32Array$1;
|
|
52
|
+
const isInt8Array = isInt8Array$1;
|
|
53
|
+
const isInteger = isInteger$1;
|
|
54
|
+
const isIterable = isIterable$1;
|
|
55
|
+
const isMap = isMap$1;
|
|
56
|
+
const isNan = isNan$1;
|
|
57
|
+
const isNativePromise = isNativePromise$1;
|
|
58
|
+
const isNegativeNumber = isNegativeNumber$1;
|
|
59
|
+
const isNodeStream = isNodeStream$1;
|
|
60
|
+
const isNonEmptyArray = isNonEmptyArray$1;
|
|
61
|
+
const isNonEmptyMap = isNonEmptyMap$1;
|
|
62
|
+
const isNonEmptyObject = isNonEmptyObject$1;
|
|
63
|
+
const isNonEmptySet = isNonEmptySet$1;
|
|
64
|
+
const isNonEmptyString = isNonEmptyString$1;
|
|
65
|
+
const isNonEmptyStringAndNotWhitespace = isNonEmptyStringAndNotWhitespace$1;
|
|
66
|
+
const isNull = isNull$1;
|
|
67
|
+
const isNullOrUndefined = isNullOrUndefined$1;
|
|
68
|
+
const isNumber = isNumber$1;
|
|
69
|
+
const isNumericString = isNumericString$1;
|
|
70
|
+
const isObject = isObject$1;
|
|
71
|
+
const isObservable = isObservable$1;
|
|
72
|
+
const isOddInteger = isOddInteger$1;
|
|
73
|
+
const isPlainObject = isPlainObject$1;
|
|
74
|
+
const isPositiveNumber = isPositiveNumber$1;
|
|
75
|
+
const isPrimitive = isPrimitive$1;
|
|
76
|
+
const isPromise = isPromise$1;
|
|
77
|
+
const isPropertyKey = isPropertyKey$1;
|
|
78
|
+
const isRegExp = isRegExp$1;
|
|
79
|
+
const isSafeInteger = isSafeInteger$1;
|
|
80
|
+
const isSet = isSet$1;
|
|
81
|
+
const isSharedArrayBuffer = isSharedArrayBuffer$1;
|
|
82
|
+
const isString = isString$1;
|
|
83
|
+
const isSymbol = isSymbol$1;
|
|
84
|
+
const isTruthy = isTruthy$1;
|
|
85
|
+
const isTupleLike = isTupleLike$1;
|
|
86
|
+
const isTypedArray = isTypedArray$1;
|
|
87
|
+
const isUint16Array = isUint16Array$1;
|
|
88
|
+
const isUint32Array = isUint32Array$1;
|
|
89
|
+
const isUint8Array = isUint8Array$1;
|
|
90
|
+
const isUint8ClampedArray = isUint8ClampedArray$1;
|
|
91
|
+
const isUndefined = isUndefined$1;
|
|
92
|
+
const isUrlInstance = isUrlInstance$1;
|
|
93
|
+
const isUrlSearchParams = isUrlSearchParams$1;
|
|
94
|
+
const isUrlString = isUrlString$1;
|
|
95
|
+
const isValidDate = isValidDate$1;
|
|
96
|
+
const isValidLength = isValidLength$1;
|
|
97
|
+
const isWeakMap = isWeakMap$1;
|
|
98
|
+
const isWeakRef = isWeakRef$1;
|
|
99
|
+
const isWeakSet = isWeakSet$1;
|
|
100
|
+
const isWhitespaceString = isWhitespaceString$1;
|
|
101
|
+
|
|
102
|
+
export { isAll, isAny, isArray, isArrayBuffer, isArrayLike, isAsyncFunction, isAsyncGenerator, isAsyncGeneratorFunction, isAsyncIterable, isBigInt64Array, isBigUint64Array, isBigint, isBlob, isBoolean, isBoundFunction, isBuffer, isClass, isDataView, isDate, isDirectInstanceOf, isEmptyArray, isEmptyMap, isEmptyObject, isEmptySet, isEmptyString, isEmptyStringOrWhitespace, isEnumCase, isError, isEvenInteger, isFalsy, isFloat32Array, isFloat64Array, isFormData, isFunction, isGenerator, isGeneratorFunction, isHtmlElement, isInRange, isInfinite, isInt16Array, isInt32Array, isInt8Array, isInteger, isIterable, isMap, isNan, isNativePromise, isNegativeNumber, isNodeStream, isNonEmptyArray, isNonEmptyMap, isNonEmptyObject, isNonEmptySet, isNonEmptyString, isNonEmptyStringAndNotWhitespace, isNull, isNullOrUndefined, isNumber, isNumericString, isObject, isObservable, isOddInteger, isPlainObject, isPositiveNumber, isPrimitive, isPromise, isPropertyKey, isRegExp, isSafeInteger, isSet, isSharedArrayBuffer, isString, isSymbol, isTruthy, isTupleLike, isTypedArray, isUint16Array, isUint32Array, isUint8Array, isUint8ClampedArray, isUndefined as isUndef, isUndefined, isUrlInstance, isUrlSearchParams, isUrlString, isValidDate, isValidLength, isWeakMap, isWeakRef, isWeakSet, isWhitespaceString };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @module misc/compose
|
|
3
|
+
* @importTarget ./misc/compose
|
|
4
|
+
* @author Hervé Perchec
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Compose functions. If at least one returned value is a promise, so the entire result will be promisyfied
|
|
8
|
+
* @param funcs - The array of function to compose
|
|
9
|
+
* @param args - The array of arguments to pass
|
|
10
|
+
* @returns The returned value of compose functions
|
|
11
|
+
* @envCompat Browser
|
|
12
|
+
* @envCompat Node
|
|
13
|
+
* @example
|
|
14
|
+
* compose([ (str) => [ str.toUpperCase() ], (str) => [ `_${str}` ] ], [ 'foo' ]) // [ '_FOO' ]
|
|
15
|
+
* compose([ (str) => [ str.toUpperCase() ], (str) => new Promise((resolve) => resolve([ `_${str}` ])) ], [ 'foo' ]) // Promise resolved with [ '_FOO' ]
|
|
16
|
+
*/
|
|
17
|
+
export declare function compose(funcs: Function[], args?: any[]): any;
|
|
18
|
+
export default compose;
|