lang-json 1.0.3 → 213.21.24
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of lang-json might be problematic. Click here for more details.
- package/index.js +34 -0
- package/package.json +7 -57
- package/README.md +0 -0
- package/babel.config.js +0 -8
- package/coverage/clover.xml +0 -6
- package/coverage/coverage-final.json +0 -1
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -87
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -101
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -196
- package/coverage/lcov.info +0 -0
- package/dist/esm/src/index.d.ts +0 -18
- package/dist/esm/src/index.js +0 -369
- package/dist/esm/src/index.js.map +0 -1
- package/dist/esm/src/modules/is-this/index.d.ts +0 -136
- package/dist/esm/src/modules/is-this/index.js +0 -484
- package/dist/esm/src/modules/is-this/index.js.map +0 -1
- package/dist/esm/tests/helpers.test.d.ts +0 -1
- package/dist/esm/tests/helpers.test.js +0 -284
- package/dist/esm/tests/helpers.test.js.map +0 -1
- package/dist/esm/tests/index.test.d.ts +0 -1
- package/dist/esm/tests/index.test.js +0 -537
- package/dist/esm/tests/index.test.js.map +0 -1
- package/dist/esm/tests/readme.test.d.ts +0 -1
- package/dist/esm/tests/readme.test.js +0 -73
- package/dist/esm/tests/readme.test.js.map +0 -1
- package/jest.config.ts +0 -212
- package/src/index.ts +0 -467
- package/src/modules/is-this/index.ts +0 -682
- package/tests/helpers.test.ts +0 -331
- package/tests/index.test.ts +0 -681
- package/tests/readme.test.ts +0 -78
- package/tsconfig.json +0 -16
@@ -1,136 +0,0 @@
|
|
1
|
-
declare class IsThis {
|
2
|
-
isString(value: any): value is string;
|
3
|
-
isNumber(value: any): value is number;
|
4
|
-
isBoolean(value: any): value is boolean;
|
5
|
-
isNull(value: any): value is null;
|
6
|
-
isUndefined(value: any): value is undefined;
|
7
|
-
isNullOrUndefined(value: any): boolean;
|
8
|
-
isBigInt(value: any): value is bigint;
|
9
|
-
isSymbol(value: any): value is symbol;
|
10
|
-
isArray(value: any): value is any[];
|
11
|
-
isObject(value: any): value is object;
|
12
|
-
isArrayOrObject(value: any): value is object | any[];
|
13
|
-
isFunction(value: any): value is Function;
|
14
|
-
isHTMLElement(value: any): boolean;
|
15
|
-
isMap(value: any): boolean;
|
16
|
-
isSet(value: any): boolean;
|
17
|
-
isWeakMap(value: any): value is WeakMap<any, any>;
|
18
|
-
isWeakSet(value: any): value is WeakSet<any>;
|
19
|
-
isPromise(value: any): boolean;
|
20
|
-
isArrayBuffer(value: any): value is ArrayBuffer;
|
21
|
-
isTypedArray(value: any): boolean;
|
22
|
-
isBlob(value: any): value is Blob;
|
23
|
-
isFile(value: any): value is File;
|
24
|
-
isDataView(value: any): value is DataView;
|
25
|
-
isInt(value: any): boolean;
|
26
|
-
isFloat(value: any): boolean;
|
27
|
-
isFiniteNumber(value: any): boolean;
|
28
|
-
isInfinity(value: any): boolean;
|
29
|
-
isEven(value: any): boolean;
|
30
|
-
isOdd(value: any): boolean;
|
31
|
-
isPositive(value: any): boolean;
|
32
|
-
isNegative(value: any): boolean;
|
33
|
-
isPrime(value: any): boolean;
|
34
|
-
isSafeInteger(value: any): boolean;
|
35
|
-
isDivisibleBy(value: any, divisor: number): boolean;
|
36
|
-
isPerfectSquare(value: any): boolean;
|
37
|
-
isFibonacci(value: any): boolean;
|
38
|
-
isEmptyString(value: any): boolean;
|
39
|
-
isNumberString(value: any): boolean;
|
40
|
-
isBooleanString(value: any): boolean;
|
41
|
-
isNullString(value: any): boolean;
|
42
|
-
isUndefinedString(value: any): boolean;
|
43
|
-
isNullOrUndefinedString(value: any): boolean;
|
44
|
-
isDateString(value: any): boolean;
|
45
|
-
isUUID(value: any): boolean;
|
46
|
-
isHexColor(value: any): boolean;
|
47
|
-
isPhoneNumber(value: any): boolean;
|
48
|
-
isValidEmail(value: any): boolean;
|
49
|
-
isAlpha(value: any): boolean;
|
50
|
-
isAlphanumeric(value: any): boolean;
|
51
|
-
isLowerCase(value: any): boolean;
|
52
|
-
isUpperCase(value: any): boolean;
|
53
|
-
isJSONString(value: any): boolean;
|
54
|
-
isIPv4(value: any): boolean;
|
55
|
-
isIPv6(value: any): boolean;
|
56
|
-
isMACAddress(value: any): boolean;
|
57
|
-
isBase64(value: any): boolean;
|
58
|
-
isCreditCard(value: any): boolean;
|
59
|
-
isPalindrome(value: any): boolean;
|
60
|
-
isEmptyObject(value: any): boolean;
|
61
|
-
isObjectWithKeys(value: any, keys: string[]): boolean;
|
62
|
-
isPlainObject(value: any): boolean;
|
63
|
-
isInstanceOf(value: any, classRef: Function): boolean;
|
64
|
-
hasProperty(value: any, prop: string | symbol): boolean;
|
65
|
-
hasMethod(value: any, methodName: string): boolean;
|
66
|
-
hasKeys(value: any, keys: string[]): boolean;
|
67
|
-
isPrototypeOf(value: any, prototype: any): boolean;
|
68
|
-
isFrozen(value: any): boolean;
|
69
|
-
isSealed(value: any): boolean;
|
70
|
-
isExtensible(value: any): boolean;
|
71
|
-
isEmptyArray(value: any): boolean;
|
72
|
-
isNonEmptyArray(value: any): boolean;
|
73
|
-
isArrayLike(value: any): boolean;
|
74
|
-
isArrayOfType(value: any, typeCheck: (item: any) => boolean): boolean;
|
75
|
-
isArrayOfStrings(value: any): boolean;
|
76
|
-
isArrayOfNumbers(value: any): boolean;
|
77
|
-
isArrayOfBooleans(value: any): boolean;
|
78
|
-
isArrayOfObjects(value: any): boolean;
|
79
|
-
isArrayOfPrimitives(value: any): boolean;
|
80
|
-
isSubset(subset: any[], superset: any[]): boolean;
|
81
|
-
isArrayOfUniqueElements(value: any): boolean;
|
82
|
-
isDeepEqual(a: any, b: any): boolean;
|
83
|
-
isShallowEqual(a: any, b: any): boolean;
|
84
|
-
isGreaterThan(a: any, b: any): boolean;
|
85
|
-
isLessThan(a: any, b: any): boolean;
|
86
|
-
isBetween(value: number, min: number, max: number): boolean;
|
87
|
-
isInstanceOfAll(value: any, constructors: Function[]): boolean;
|
88
|
-
isInstanceOfAny(value: any, constructors: Function[]): boolean;
|
89
|
-
isSimilarObject(obj1: any, obj2: any): boolean;
|
90
|
-
isApproxEqual(value: number, comparison: number, tolerance?: number): boolean;
|
91
|
-
isNonStrictEqual(a: any, b: any): boolean;
|
92
|
-
isRegExp(value: any): boolean;
|
93
|
-
isURL(value: any): boolean;
|
94
|
-
isDomain(value: any): boolean;
|
95
|
-
isRelativeURL(value: any): boolean;
|
96
|
-
isAbsoluteURL(value: any): boolean;
|
97
|
-
isSecureURL(value: any): boolean;
|
98
|
-
isTruthy(value: any): boolean;
|
99
|
-
isFalsy(value: any): boolean;
|
100
|
-
isInRange(value: any, min: number, max: number): boolean;
|
101
|
-
isFileSizeInRange(value: File, minBytes: number, maxBytes: number): boolean;
|
102
|
-
isBrowser(): boolean;
|
103
|
-
isNode(): boolean;
|
104
|
-
isUserDefinedType(value: any, constructor: Function): boolean;
|
105
|
-
isWeakRef(value: any): boolean;
|
106
|
-
isNativeFunction(value: any): boolean;
|
107
|
-
isMimeType(value: any): boolean;
|
108
|
-
isMobileDevice(): boolean;
|
109
|
-
isDevEnvironment(): boolean;
|
110
|
-
isProdEnvironment(): boolean;
|
111
|
-
isIterable(value: any): boolean;
|
112
|
-
isEmptyIterable(value: any): boolean;
|
113
|
-
isNonEmptyIterable(value: any): boolean;
|
114
|
-
isNonEmptyMap(value: any): boolean;
|
115
|
-
isNonEmptySet(value: any): boolean;
|
116
|
-
isAsyncFunction(value: any): boolean;
|
117
|
-
isPromiseLike(value: any): boolean;
|
118
|
-
isFunctionType(value: any, constructor: Function): boolean;
|
119
|
-
isGeneratorFunction(value: any): boolean;
|
120
|
-
isArrowFunction(value: any): boolean;
|
121
|
-
isAsyncGeneratorFunction(value: any): boolean;
|
122
|
-
isDate(value: any): value is Date;
|
123
|
-
isPastDate(value: any): boolean;
|
124
|
-
isFutureDate(value: any): boolean;
|
125
|
-
isValidDate(value: any): boolean;
|
126
|
-
isLeapYear(year: number): boolean;
|
127
|
-
isWeekend(value: any): boolean;
|
128
|
-
isToday(value: any): boolean;
|
129
|
-
isTomorrow(value: any): boolean;
|
130
|
-
isError(value: any): boolean;
|
131
|
-
isTypeError(value: any): boolean;
|
132
|
-
isSyntaxError(value: any): boolean;
|
133
|
-
isRangeError(value: any): boolean;
|
134
|
-
}
|
135
|
-
declare const isThis: IsThis;
|
136
|
-
export default isThis;
|
@@ -1,484 +0,0 @@
|
|
1
|
-
class IsThis {
|
2
|
-
// ------------------ Primitive Type Checks ------------------
|
3
|
-
isString(value) {
|
4
|
-
return typeof value === "string";
|
5
|
-
}
|
6
|
-
isNumber(value) {
|
7
|
-
return typeof value === "number" && !isNaN(value);
|
8
|
-
}
|
9
|
-
isBoolean(value) {
|
10
|
-
return typeof value === "boolean";
|
11
|
-
}
|
12
|
-
isNull(value) {
|
13
|
-
return value === null;
|
14
|
-
}
|
15
|
-
isUndefined(value) {
|
16
|
-
return typeof value === "undefined";
|
17
|
-
}
|
18
|
-
isNullOrUndefined(value) {
|
19
|
-
return this.isNull(value) || this.isUndefined(value);
|
20
|
-
}
|
21
|
-
isBigInt(value) {
|
22
|
-
return typeof value === "bigint";
|
23
|
-
}
|
24
|
-
isSymbol(value) {
|
25
|
-
return typeof value === "symbol";
|
26
|
-
}
|
27
|
-
// ------------------ Collection Type Checks ------------------
|
28
|
-
isArray(value) {
|
29
|
-
return Array.isArray(value);
|
30
|
-
}
|
31
|
-
isObject(value) {
|
32
|
-
return value !== null && typeof value === "object" && !this.isArray(value);
|
33
|
-
}
|
34
|
-
isArrayOrObject(value) {
|
35
|
-
return this.isArray(value) || this.isObject(value);
|
36
|
-
}
|
37
|
-
isFunction(value) {
|
38
|
-
return typeof value === "function";
|
39
|
-
}
|
40
|
-
isHTMLElement(value) {
|
41
|
-
return value instanceof HTMLElement;
|
42
|
-
}
|
43
|
-
isMap(value) {
|
44
|
-
return value instanceof Map;
|
45
|
-
}
|
46
|
-
isSet(value) {
|
47
|
-
return value instanceof Set;
|
48
|
-
}
|
49
|
-
isWeakMap(value) {
|
50
|
-
return value instanceof WeakMap;
|
51
|
-
}
|
52
|
-
isWeakSet(value) {
|
53
|
-
return value instanceof WeakSet;
|
54
|
-
}
|
55
|
-
// ------------------ Data Structure Checks ------------------
|
56
|
-
isPromise(value) {
|
57
|
-
return (this.isObject(value) &&
|
58
|
-
typeof value.then === "function");
|
59
|
-
}
|
60
|
-
isArrayBuffer(value) {
|
61
|
-
return value instanceof ArrayBuffer;
|
62
|
-
}
|
63
|
-
isTypedArray(value) {
|
64
|
-
return (value instanceof Int8Array ||
|
65
|
-
value instanceof Uint8Array ||
|
66
|
-
value instanceof Uint8ClampedArray ||
|
67
|
-
value instanceof Int16Array ||
|
68
|
-
value instanceof Uint16Array ||
|
69
|
-
value instanceof Int32Array ||
|
70
|
-
value instanceof Uint32Array ||
|
71
|
-
value instanceof Float32Array ||
|
72
|
-
value instanceof Float64Array ||
|
73
|
-
value instanceof BigInt64Array ||
|
74
|
-
value instanceof BigUint64Array);
|
75
|
-
}
|
76
|
-
isBlob(value) {
|
77
|
-
return value instanceof Blob;
|
78
|
-
}
|
79
|
-
isFile(value) {
|
80
|
-
return value instanceof File;
|
81
|
-
}
|
82
|
-
isDataView(value) {
|
83
|
-
return value instanceof DataView;
|
84
|
-
}
|
85
|
-
// ------------------ Number Checks ------------------
|
86
|
-
isInt(value) {
|
87
|
-
return this.isNumber(value) && Number.isInteger(value);
|
88
|
-
}
|
89
|
-
isFloat(value) {
|
90
|
-
return this.isNumber(value) && !Number.isInteger(value);
|
91
|
-
}
|
92
|
-
isFiniteNumber(value) {
|
93
|
-
return this.isNumber(value) && Number.isFinite(value);
|
94
|
-
}
|
95
|
-
isInfinity(value) {
|
96
|
-
return this.isNumber(value) && (value === Infinity || value === -Infinity);
|
97
|
-
}
|
98
|
-
isEven(value) {
|
99
|
-
return this.isInt(value) && value % 2 === 0;
|
100
|
-
}
|
101
|
-
isOdd(value) {
|
102
|
-
return this.isInt(value) && value % 2 !== 0;
|
103
|
-
}
|
104
|
-
isPositive(value) {
|
105
|
-
return this.isNumber(value) && value > 0;
|
106
|
-
}
|
107
|
-
isNegative(value) {
|
108
|
-
return this.isNumber(value) && value < 0;
|
109
|
-
}
|
110
|
-
isPrime(value) {
|
111
|
-
if (!this.isInt(value) || value < 2)
|
112
|
-
return false;
|
113
|
-
for (let i = 2; i <= Math.sqrt(value); i++) {
|
114
|
-
if (value % i === 0)
|
115
|
-
return false;
|
116
|
-
}
|
117
|
-
return true;
|
118
|
-
}
|
119
|
-
isSafeInteger(value) {
|
120
|
-
return this.isInt(value) && Number.isSafeInteger(value);
|
121
|
-
}
|
122
|
-
isDivisibleBy(value, divisor) {
|
123
|
-
return (this.isNumber(value) && this.isNumber(divisor) && value % divisor === 0);
|
124
|
-
}
|
125
|
-
isPerfectSquare(value) {
|
126
|
-
return this.isNumber(value) && Math.sqrt(value) % 1 === 0;
|
127
|
-
}
|
128
|
-
isFibonacci(value) {
|
129
|
-
if (!this.isInt(value) || value < 0)
|
130
|
-
return false;
|
131
|
-
const isPerfectSquare = (x) => Math.sqrt(x) % 1 === 0;
|
132
|
-
return (isPerfectSquare(5 * value * value + 4) ||
|
133
|
-
isPerfectSquare(5 * value * value - 4));
|
134
|
-
}
|
135
|
-
// ------------------ String Checks ------------------
|
136
|
-
isEmptyString(value) {
|
137
|
-
return this.isString(value) && value.trim().length === 0;
|
138
|
-
}
|
139
|
-
isNumberString(value) {
|
140
|
-
return this.isString(value) && !this.isEmptyString(value) && !isNaN(+value);
|
141
|
-
}
|
142
|
-
isBooleanString(value) {
|
143
|
-
return this.isString(value) && (value === "true" || value === "false");
|
144
|
-
}
|
145
|
-
isNullString(value) {
|
146
|
-
return this.isString(value) && value === "null";
|
147
|
-
}
|
148
|
-
isUndefinedString(value) {
|
149
|
-
return this.isString(value) && value === "undefined";
|
150
|
-
}
|
151
|
-
isNullOrUndefinedString(value) {
|
152
|
-
return this.isString(value) && (value === "null" || value === "undefined");
|
153
|
-
}
|
154
|
-
isDateString(value) {
|
155
|
-
const date = new Date(value);
|
156
|
-
return !isNaN(date.getTime());
|
157
|
-
}
|
158
|
-
isUUID(value) {
|
159
|
-
return (this.isString(value) &&
|
160
|
-
/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/.test(value));
|
161
|
-
}
|
162
|
-
isHexColor(value) {
|
163
|
-
return (this.isString(value) && /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(value));
|
164
|
-
}
|
165
|
-
isPhoneNumber(value) {
|
166
|
-
return this.isString(value) && /^\+?[1-9]\d{1,14}$/.test(value);
|
167
|
-
}
|
168
|
-
isValidEmail(value) {
|
169
|
-
return this.isString(value) && /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(value);
|
170
|
-
}
|
171
|
-
isAlpha(value) {
|
172
|
-
return this.isString(value) && /^[A-Za-z]+$/.test(value);
|
173
|
-
}
|
174
|
-
isAlphanumeric(value) {
|
175
|
-
return this.isString(value) && /^[A-Za-z0-9]+$/.test(value);
|
176
|
-
}
|
177
|
-
isLowerCase(value) {
|
178
|
-
return this.isString(value) && value === value.toLowerCase();
|
179
|
-
}
|
180
|
-
isUpperCase(value) {
|
181
|
-
return this.isString(value) && value === value.toUpperCase();
|
182
|
-
}
|
183
|
-
isJSONString(value) {
|
184
|
-
if (!this.isString(value))
|
185
|
-
return false;
|
186
|
-
try {
|
187
|
-
JSON.parse(value);
|
188
|
-
return true;
|
189
|
-
}
|
190
|
-
catch {
|
191
|
-
return false;
|
192
|
-
}
|
193
|
-
}
|
194
|
-
isIPv4(value) {
|
195
|
-
return (this.isString(value) &&
|
196
|
-
/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/.test(value));
|
197
|
-
}
|
198
|
-
isIPv6(value) {
|
199
|
-
return (this.isString(value) &&
|
200
|
-
/^([0-9a-fA-F]{1,4}:){7}([0-9a-fA-F]{1,4})$/.test(value));
|
201
|
-
}
|
202
|
-
isMACAddress(value) {
|
203
|
-
return (this.isString(value) &&
|
204
|
-
/^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$/.test(value));
|
205
|
-
}
|
206
|
-
isBase64(value) {
|
207
|
-
return (this.isString(value) &&
|
208
|
-
/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.test(value));
|
209
|
-
}
|
210
|
-
isCreditCard(value) {
|
211
|
-
return (this.isString(value) &&
|
212
|
-
/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|6(?:011|5[0-9]{2})[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/.test(value));
|
213
|
-
}
|
214
|
-
isPalindrome(value) {
|
215
|
-
return this.isString(value) && value === value.split("").reverse().join("");
|
216
|
-
}
|
217
|
-
// ------------------ Object Checks ------------------
|
218
|
-
isEmptyObject(value) {
|
219
|
-
return this.isObject(value) && Object.keys(value).length === 0;
|
220
|
-
}
|
221
|
-
isObjectWithKeys(value, keys) {
|
222
|
-
return this.isObject(value) && keys.every((key) => key in value);
|
223
|
-
}
|
224
|
-
isPlainObject(value) {
|
225
|
-
return this.isObject(value) && value.constructor === Object;
|
226
|
-
}
|
227
|
-
isInstanceOf(value, classRef) {
|
228
|
-
return value instanceof classRef;
|
229
|
-
}
|
230
|
-
hasProperty(value, prop) {
|
231
|
-
return value != null && prop in value;
|
232
|
-
}
|
233
|
-
hasMethod(value, methodName) {
|
234
|
-
return (this.hasProperty(value, methodName) && this.isFunction(value[methodName]));
|
235
|
-
}
|
236
|
-
hasKeys(value, keys) {
|
237
|
-
return this.isObject(value) && keys.every((key) => key in value);
|
238
|
-
}
|
239
|
-
isPrototypeOf(value, prototype) {
|
240
|
-
return this.isObject(value) && prototype.isPrototypeOf(value);
|
241
|
-
}
|
242
|
-
isFrozen(value) {
|
243
|
-
return Object.isFrozen(value);
|
244
|
-
}
|
245
|
-
isSealed(value) {
|
246
|
-
return Object.isSealed(value);
|
247
|
-
}
|
248
|
-
isExtensible(value) {
|
249
|
-
return Object.isExtensible(value);
|
250
|
-
}
|
251
|
-
// ------------------ Array Checks ------------------
|
252
|
-
isEmptyArray(value) {
|
253
|
-
return this.isArray(value) && value.length === 0;
|
254
|
-
}
|
255
|
-
isNonEmptyArray(value) {
|
256
|
-
return this.isArray(value) && value.length > 0;
|
257
|
-
}
|
258
|
-
isArrayLike(value) {
|
259
|
-
return (value != null &&
|
260
|
-
typeof value === "object" &&
|
261
|
-
"length" in value &&
|
262
|
-
Number.isInteger(value.length));
|
263
|
-
}
|
264
|
-
isArrayOfType(value, typeCheck) {
|
265
|
-
return this.isArray(value) && value.every(typeCheck);
|
266
|
-
}
|
267
|
-
isArrayOfStrings(value) {
|
268
|
-
return this.isArrayOfType(value, this.isString.bind(this));
|
269
|
-
}
|
270
|
-
isArrayOfNumbers(value) {
|
271
|
-
return this.isArrayOfType(value, this.isNumber.bind(this));
|
272
|
-
}
|
273
|
-
isArrayOfBooleans(value) {
|
274
|
-
return this.isArrayOfType(value, this.isBoolean.bind(this));
|
275
|
-
}
|
276
|
-
isArrayOfObjects(value) {
|
277
|
-
return this.isArrayOfType(value, this.isObject.bind(this));
|
278
|
-
}
|
279
|
-
isArrayOfPrimitives(value) {
|
280
|
-
const isPrimitive = (item) => item !== Object(item);
|
281
|
-
return this.isArray(value) && value.every(isPrimitive);
|
282
|
-
}
|
283
|
-
isSubset(subset, superset) {
|
284
|
-
return (this.isArray(subset) && subset.every((value) => superset.includes(value)));
|
285
|
-
}
|
286
|
-
isArrayOfUniqueElements(value) {
|
287
|
-
return this.isArray(value) && new Set(value).size === value.length;
|
288
|
-
}
|
289
|
-
// ------------------ Comparison Checks ------------------
|
290
|
-
isDeepEqual(a, b) {
|
291
|
-
return JSON.stringify(a) === JSON.stringify(b);
|
292
|
-
}
|
293
|
-
isShallowEqual(a, b) {
|
294
|
-
return a === b;
|
295
|
-
}
|
296
|
-
isGreaterThan(a, b) {
|
297
|
-
return this.isNumber(a) && this.isNumber(b) && a > b;
|
298
|
-
}
|
299
|
-
isLessThan(a, b) {
|
300
|
-
return this.isNumber(a) && this.isNumber(b) && a < b;
|
301
|
-
}
|
302
|
-
isBetween(value, min, max) {
|
303
|
-
return this.isNumber(value) && value >= min && value <= max;
|
304
|
-
}
|
305
|
-
isInstanceOfAll(value, constructors) {
|
306
|
-
return constructors.every((constructor) => value instanceof constructor);
|
307
|
-
}
|
308
|
-
isInstanceOfAny(value, constructors) {
|
309
|
-
return constructors.some((constructor) => value instanceof constructor);
|
310
|
-
}
|
311
|
-
isSimilarObject(obj1, obj2) {
|
312
|
-
const keys1 = Object.keys(obj1);
|
313
|
-
const keys2 = Object.keys(obj2);
|
314
|
-
if (keys1.length !== keys2.length)
|
315
|
-
return false;
|
316
|
-
return keys1.every((key) => key in obj2 && obj1[key] === obj2[key]);
|
317
|
-
}
|
318
|
-
isApproxEqual(value, comparison, tolerance = 0.00001) {
|
319
|
-
return (this.isNumber(value) &&
|
320
|
-
this.isNumber(comparison) &&
|
321
|
-
Math.abs(value - comparison) <= tolerance);
|
322
|
-
}
|
323
|
-
isNonStrictEqual(a, b) {
|
324
|
-
return a == b;
|
325
|
-
}
|
326
|
-
// ------------------ Miscellaneous Checks ------------------
|
327
|
-
isRegExp(value) {
|
328
|
-
return value instanceof RegExp;
|
329
|
-
}
|
330
|
-
isURL(value) {
|
331
|
-
try {
|
332
|
-
new URL(value);
|
333
|
-
return true;
|
334
|
-
}
|
335
|
-
catch {
|
336
|
-
return false;
|
337
|
-
}
|
338
|
-
}
|
339
|
-
isDomain(value) {
|
340
|
-
return (this.isString(value) &&
|
341
|
-
/^(?!:\/\/)([a-zA-Z0-9-_]+\.)+[a-zA-Z]{2,6}$/.test(value));
|
342
|
-
}
|
343
|
-
isRelativeURL(value) {
|
344
|
-
return (this.isString(value) && !this.isURL(value) && /^[\/.][^:]*$/.test(value));
|
345
|
-
}
|
346
|
-
isAbsoluteURL(value) {
|
347
|
-
return this.isURL(value) && /^https?:\/\//.test(value);
|
348
|
-
}
|
349
|
-
isSecureURL(value) {
|
350
|
-
return this.isAbsoluteURL(value) && value.startsWith("https://");
|
351
|
-
}
|
352
|
-
isTruthy(value) {
|
353
|
-
return !!value;
|
354
|
-
}
|
355
|
-
isFalsy(value) {
|
356
|
-
return !value;
|
357
|
-
}
|
358
|
-
isInRange(value, min, max) {
|
359
|
-
return this.isNumber(value) && value >= min && value <= max;
|
360
|
-
}
|
361
|
-
isFileSizeInRange(value, minBytes, maxBytes) {
|
362
|
-
return (this.isFile(value) && value.size >= minBytes && value.size <= maxBytes);
|
363
|
-
}
|
364
|
-
isBrowser() {
|
365
|
-
return (typeof window !== "undefined" && typeof window.document !== "undefined");
|
366
|
-
}
|
367
|
-
isNode() {
|
368
|
-
return (typeof process !== "undefined" &&
|
369
|
-
process.versions != null &&
|
370
|
-
process.versions.node != null);
|
371
|
-
}
|
372
|
-
isUserDefinedType(value, constructor) {
|
373
|
-
return value instanceof constructor;
|
374
|
-
}
|
375
|
-
isWeakRef(value) {
|
376
|
-
return value instanceof WeakRef;
|
377
|
-
}
|
378
|
-
isNativeFunction(value) {
|
379
|
-
return this.isFunction(value) && /\[native code\]/.test(value.toString());
|
380
|
-
}
|
381
|
-
isMimeType(value) {
|
382
|
-
return this.isString(value) && /^[a-z]+\/[a-z0-9\-\+]+$/i.test(value);
|
383
|
-
}
|
384
|
-
isMobileDevice() {
|
385
|
-
return this.isBrowser() && /Mobi|Android/i.test(navigator.userAgent);
|
386
|
-
}
|
387
|
-
isDevEnvironment() {
|
388
|
-
return process.env.NODE_ENV === "development";
|
389
|
-
}
|
390
|
-
isProdEnvironment() {
|
391
|
-
return process.env.NODE_ENV === "production";
|
392
|
-
}
|
393
|
-
// ------------------ Iterable and Collection Checks ------------------
|
394
|
-
isIterable(value) {
|
395
|
-
return value != null && typeof value[Symbol.iterator] === "function";
|
396
|
-
}
|
397
|
-
isEmptyIterable(value) {
|
398
|
-
return this.isIterable(value) && Array.from(value).length === 0;
|
399
|
-
}
|
400
|
-
isNonEmptyIterable(value) {
|
401
|
-
return this.isIterable(value) && Array.from(value).length > 0;
|
402
|
-
}
|
403
|
-
isNonEmptyMap(value) {
|
404
|
-
return this.isMap(value) && value.size > 0;
|
405
|
-
}
|
406
|
-
isNonEmptySet(value) {
|
407
|
-
return this.isSet(value) && value.size > 0;
|
408
|
-
}
|
409
|
-
// ------------------ Function Checks ------------------
|
410
|
-
isAsyncFunction(value) {
|
411
|
-
return (value instanceof Function && value.constructor.name === "AsyncFunction");
|
412
|
-
}
|
413
|
-
isPromiseLike(value) {
|
414
|
-
return (value && typeof value === "object" && typeof value.then === "function");
|
415
|
-
}
|
416
|
-
isFunctionType(value, constructor) {
|
417
|
-
return typeof value === "function" && value.constructor === constructor;
|
418
|
-
}
|
419
|
-
isGeneratorFunction(value) {
|
420
|
-
return (this.isFunction(value) && value.constructor.name === "GeneratorFunction");
|
421
|
-
}
|
422
|
-
isArrowFunction(value) {
|
423
|
-
return this.isFunction(value) && !value.hasOwnProperty("prototype");
|
424
|
-
}
|
425
|
-
isAsyncGeneratorFunction(value) {
|
426
|
-
return (this.isFunction(value) &&
|
427
|
-
value.constructor.name === "AsyncGeneratorFunction");
|
428
|
-
}
|
429
|
-
// ------------------ Date Checks ------------------
|
430
|
-
isDate(value) {
|
431
|
-
return value instanceof Date && !isNaN(value.getTime());
|
432
|
-
}
|
433
|
-
isPastDate(value) {
|
434
|
-
return this.isDate(value) && value.getTime() < Date.now();
|
435
|
-
}
|
436
|
-
isFutureDate(value) {
|
437
|
-
return this.isDate(value) && value.getTime() > Date.now();
|
438
|
-
}
|
439
|
-
isValidDate(value) {
|
440
|
-
return !isNaN(new Date(value).getTime());
|
441
|
-
}
|
442
|
-
isLeapYear(year) {
|
443
|
-
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;
|
444
|
-
}
|
445
|
-
isWeekend(value) {
|
446
|
-
const date = new Date(value);
|
447
|
-
return this.isDate(date) && (date.getDay() === 0 || date.getDay() === 6);
|
448
|
-
}
|
449
|
-
isToday(value) {
|
450
|
-
if (!this.isDate(value))
|
451
|
-
return false;
|
452
|
-
const today = new Date();
|
453
|
-
const date = new Date(value);
|
454
|
-
return (date.getFullYear() === today.getFullYear() &&
|
455
|
-
date.getMonth() === today.getMonth() &&
|
456
|
-
date.getDate() === today.getDate());
|
457
|
-
}
|
458
|
-
isTomorrow(value) {
|
459
|
-
if (!this.isDate(value))
|
460
|
-
return false;
|
461
|
-
const tomorrow = new Date();
|
462
|
-
tomorrow.setDate(tomorrow.getDate() + 1);
|
463
|
-
const date = new Date(value);
|
464
|
-
return (date.getFullYear() === tomorrow.getFullYear() &&
|
465
|
-
date.getMonth() === tomorrow.getMonth() &&
|
466
|
-
date.getDate() === tomorrow.getDate());
|
467
|
-
}
|
468
|
-
// ------------------ Extended Error Checks ------------------
|
469
|
-
isError(value) {
|
470
|
-
return value instanceof Error;
|
471
|
-
}
|
472
|
-
isTypeError(value) {
|
473
|
-
return value instanceof TypeError;
|
474
|
-
}
|
475
|
-
isSyntaxError(value) {
|
476
|
-
return value instanceof SyntaxError;
|
477
|
-
}
|
478
|
-
isRangeError(value) {
|
479
|
-
return value instanceof RangeError;
|
480
|
-
}
|
481
|
-
}
|
482
|
-
const isThis = new IsThis();
|
483
|
-
export default isThis;
|
484
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/is-this/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM;IACV,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