itee-validators 5.5.1 → 6.0.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/.github/workflows/node.js.yml +2 -2
- package/.releaserc.mjs +94 -0
- package/.tasks/.builds/build-benchmarks.task.mjs +16 -0
- package/.tasks/.builds/build-tests.task.mjs +18 -0
- package/.tasks/.builds/build-unit-tests.task.mjs +16 -0
- package/.tasks/.builds/build.task.mjs +46 -0
- package/.tasks/.cleans/clean.task.mjs +23 -0
- package/.tasks/.docs/doc.task.mjs +35 -0
- package/.tasks/.helps/help.task.mjs +151 -0
- package/.tasks/.lints/lint.task.mjs +37 -0
- package/.tasks/.patches/patch.task.mjs +13 -0
- package/.tasks/.releases/release.task.mjs +26 -0
- package/.tasks/.tests/benchmarks/build-benchmarks-backend.task.mjs +42 -0
- package/.tasks/.tests/benchmarks/compute-benchmarks.task.mjs +210 -0
- package/.tasks/.tests/benchmarks/run-benchmarks-for-backend.task.mjs +39 -0
- package/.tasks/.tests/benchmarks/run-benchmarks-for-frontend.task.mjs +41 -0
- package/.tasks/.tests/benchmarks/run-benchmarks.task.mjs +18 -0
- package/.tasks/.tests/bundling/check-bundling-from-esm-build-import.task.mjs +123 -0
- package/.tasks/.tests/bundling/check-bundling-from-esm-files-direct.task.mjs +77 -0
- package/.tasks/.tests/bundling/check-bundling-from-esm-files-import.task.mjs +95 -0
- package/.tasks/.tests/bundling/check-bundling.task.mjs +20 -0
- package/.tasks/.tests/run-tests.task.mjs +18 -0
- package/.tasks/.tests/unit-tests/build-unit-tests-backend.task.mjs +42 -0
- package/.tasks/.tests/unit-tests/compute-unit-tests.task.mjs +537 -0
- package/.tasks/.tests/unit-tests/run-unit-tests-for-backend.task.mjs +44 -0
- package/.tasks/.tests/unit-tests/run-unit-tests-for-frontend.task.mjs +41 -0
- package/.tasks/.tests/unit-tests/run-unit-tests.task.mjs +18 -0
- package/.tasks/_refresh-gulpfile.task.mjs +65 -0
- package/.tasks/_utils.mjs +192 -0
- package/.tasks/configs/benchmarks.conf.mjs +57 -0
- package/.tasks/configs/build-benchmarks-backend.conf.mjs +51 -0
- package/.tasks/configs/build-unit-tests-backend.conf.mjs +46 -0
- package/.tasks/configs/build.conf.mjs +354 -0
- package/.tasks/configs/check-bundling.conf.mjs +26 -0
- package/.tasks/configs/clean.conf.mjs +9 -0
- package/.tasks/configs/compute-benchmarks.conf.mjs +28 -0
- package/.tasks/configs/compute-unit-tests.conf.mjs +27 -0
- package/.tasks/configs/doc.conf.json +50 -0
- package/.tasks/configs/eslint.conf.mjs +121 -0
- package/.tasks/configs/units.conf.mjs +27 -0
- package/.tasks/itee-benchmarks-framework.js +186 -0
- package/.tasks/itee-reporter.mjs +217 -0
- package/CHANGELOG.md +20 -0
- package/builds/itee-validators.cjs.js +71 -25
- package/builds/itee-validators.cjs.js.map +1 -1
- package/builds/itee-validators.cjs.min.js +70 -69
- package/builds/itee-validators.esm.js +27 -4
- package/builds/itee-validators.esm.js.map +1 -1
- package/builds/itee-validators.esm.min.js +3 -3
- package/builds/itee-validators.iife.js +27 -6
- package/builds/itee-validators.iife.js.map +1 -1
- package/builds/itee-validators.iife.min.js +10 -10
- package/package.json +49 -41
- package/sources/cores/_cores.js +10 -10
- package/sources/cores/arrays/_arrays.js +12 -12
- package/sources/cores/arrays/isArrayOfArray.js +2 -2
- package/sources/cores/arrays/isArrayOfBoolean.js +3 -3
- package/sources/cores/arrays/isArrayOfFunction.js +3 -3
- package/sources/cores/arrays/isArrayOfMultiElement.js +1 -1
- package/sources/cores/arrays/isArrayOfNull.js +3 -3
- package/sources/cores/arrays/isArrayOfNumber.js +3 -3
- package/sources/cores/arrays/isArrayOfObject.js +3 -3
- package/sources/cores/arrays/isArrayOfSingleElement.js +1 -1
- package/sources/cores/arrays/isArrayOfString.js +3 -3
- package/sources/cores/arrays/isArrayOfUndefined.js +3 -3
- package/sources/cores/arrays/isEmptyArray.js +1 -1
- package/sources/cores/booleans/_booleans.js +2 -2
- package/sources/cores/booleans/isTrue.js +1 -1
- package/sources/cores/cores.js +8 -8
- package/sources/cores/functions/_functions.js +1 -1
- package/sources/cores/numbers/_numbers.js +6 -6
- package/sources/cores/numbers/isNumber.js +3 -3
- package/sources/cores/objects/_objects.js +2 -2
- package/sources/cores/objects/isEmptyObject.js +1 -1
- package/sources/cores/objects/isObject.js +1 -1
- package/sources/cores/strings/_strings.js +3 -3
- package/sources/cores/strings/isBlankString.js +2 -2
- package/sources/cores/strings/isEmptyString.js +1 -1
- package/sources/cores/symbols/_symbols.js +1 -1
- package/sources/cores/tests/isTestUnitGenerator.js +5 -6
- package/sources/cores/typed-arrays/_typedArrays.js +12 -12
- package/sources/cores/voids/_voids.js +4 -4
- package/sources/cores/voids/isEmpty.js +4 -4
- package/sources/file-system/_file-system.js +9 -9
- package/sources/file-system/block-devices/_blockDevices.js +3 -3
- package/sources/file-system/block-devices/isBlockDevicePath.js +5 -4
- package/sources/file-system/block-devices/isValidBlockDevicePath.js +2 -2
- package/sources/file-system/character-devices/_characterDevices.js +3 -3
- package/sources/file-system/character-devices/isCharacterDevicePath.js +5 -4
- package/sources/file-system/character-devices/isValidCharacterDevicePath.js +2 -2
- package/sources/file-system/directories/_directories.js +4 -4
- package/sources/file-system/directories/isDirectoryPath.js +5 -4
- package/sources/file-system/directories/isEmptyDirectory.js +2 -2
- package/sources/file-system/directories/isValidDirectoryPath.js +2 -2
- package/sources/file-system/fifo-pipes/_fifoPipes.js +3 -3
- package/sources/file-system/fifo-pipes/isFIFOPath.js +5 -4
- package/sources/file-system/fifo-pipes/isValidFIFOPath.js +2 -2
- package/sources/file-system/files/_files.js +4 -4
- package/sources/file-system/files/isEmptyFile.js +5 -4
- package/sources/file-system/files/isFilePath.js +5 -4
- package/sources/file-system/files/isValidFilePath.js +2 -2
- package/sources/file-system/paths/_paths.js +2 -2
- package/sources/file-system/paths/isValidPath.js +1 -1
- package/sources/file-system/sockets/_sockets.js +3 -3
- package/sources/file-system/sockets/isSocketPath.js +5 -4
- package/sources/file-system/sockets/isValidSocketPath.js +2 -2
- package/sources/file-system/symbolic-links/_symbolicLinks.js +3 -3
- package/sources/file-system/symbolic-links/isSymbolicLinkPath.js +5 -4
- package/sources/file-system/symbolic-links/isValidSymbolicLinkPath.js +2 -2
- package/sources/itee-validators.js +4 -4
- package/sources/maths/_maths.js +1 -1
- package/sources/physics/_physics.js +2 -2
- package/sources/physics/temperatures/_temperatures.js +5 -5
- package/sources/physics/temperatures/isCelsius.js +2 -2
- package/sources/physics/temperatures/isFahrenheit.js +2 -2
- package/sources/physics/temperatures/isKelvin.js +2 -2
- package/sources/physics/temperatures/isTemperature.js +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";var t=require("node:fs");
|
|
2
2
|
/**
|
|
3
3
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
4
4
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* //...
|
|
16
16
|
* }
|
|
17
17
|
*
|
|
18
|
-
*/function t
|
|
18
|
+
*/function r(t){return Array.isArray(t)}function n(t){return!Array.isArray(t)}
|
|
19
19
|
/**
|
|
20
20
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
21
21
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
* //...
|
|
33
33
|
* }
|
|
34
34
|
*
|
|
35
|
-
*/function e(
|
|
35
|
+
*/function e(t){return!n(t)&&0===t.length}
|
|
36
36
|
/**
|
|
37
37
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
38
38
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
* }
|
|
51
51
|
*
|
|
52
52
|
*/
|
|
53
|
-
function i(
|
|
53
|
+
function i(t){return"boolean"==typeof t}function o(t){return"boolean"!=typeof t}
|
|
54
54
|
/**
|
|
55
55
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
56
56
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -85,7 +85,7 @@ function i(r){return"boolean"==typeof r}function o(r){return"boolean"!=typeof r}
|
|
|
85
85
|
* }
|
|
86
86
|
*
|
|
87
87
|
*/
|
|
88
|
-
function u(
|
|
88
|
+
function u(t){return"function"==typeof t}function s(t){return"function"!=typeof t}
|
|
89
89
|
/**
|
|
90
90
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
91
91
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -102,7 +102,7 @@ function u(r){return"function"==typeof r}function s(r){return"function"!=typeof
|
|
|
102
102
|
* //...
|
|
103
103
|
* }
|
|
104
104
|
*
|
|
105
|
-
*/function f(
|
|
105
|
+
*/function f(t){return null!==t}
|
|
106
106
|
/**
|
|
107
107
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
108
108
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -136,7 +136,7 @@ function u(r){return"function"==typeof r}function s(r){return"function"!=typeof
|
|
|
136
136
|
* }
|
|
137
137
|
*
|
|
138
138
|
*/
|
|
139
|
-
function a(
|
|
139
|
+
function a(t){return null!=t}function c(t){return null==t}
|
|
140
140
|
/**
|
|
141
141
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
142
142
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -153,7 +153,7 @@ function a(r){return null!=r}function c(r){return null==r}
|
|
|
153
153
|
* //...
|
|
154
154
|
* }
|
|
155
155
|
*
|
|
156
|
-
*/function p(
|
|
156
|
+
*/function p(t){return t===Number.NEGATIVE_INFINITY}function l(t){return t===Number.POSITIVE_INFINITY}function x(t){return p(t)||l(t)}function y(t){return 0===t&&1/t===Number.POSITIVE_INFINITY}
|
|
157
157
|
/**
|
|
158
158
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
159
159
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -171,7 +171,7 @@ function a(r){return null!=r}function c(r){return null==r}
|
|
|
171
171
|
* }
|
|
172
172
|
*
|
|
173
173
|
*/
|
|
174
|
-
function
|
|
174
|
+
function N(t){return!c(t)&&t.constructor===Number}function h(t){return!N(t)}function A(t){return Number.isInteger(t)}function d(t){return!h(t)&&(!Number.isNaN(t)&&(!x(t)&&t%1!=0))}
|
|
175
175
|
/**
|
|
176
176
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
177
177
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -189,7 +189,7 @@ function h(r){return!c(r)&&r.constructor===Number}function N(r){return!h(r)}func
|
|
|
189
189
|
* }
|
|
190
190
|
*
|
|
191
191
|
*/
|
|
192
|
-
function I(
|
|
192
|
+
function I(t){return!c(t)&&t.constructor===Object}function E(t){return!I(t)}
|
|
193
193
|
/**
|
|
194
194
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
195
195
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -224,7 +224,7 @@ function I(r){return!c(r)&&r.constructor===Object}function E(r){return!I(r)}
|
|
|
224
224
|
* }
|
|
225
225
|
*
|
|
226
226
|
*/
|
|
227
|
-
function g(
|
|
227
|
+
function g(t){return"string"==typeof t||t instanceof String}function m(t){return!g(t)}
|
|
228
228
|
/**
|
|
229
229
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
230
230
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -241,7 +241,7 @@ function g(r){return"string"==typeof r||r instanceof String}function v(r){return
|
|
|
241
241
|
* //...
|
|
242
242
|
* }
|
|
243
243
|
*
|
|
244
|
-
*/function
|
|
244
|
+
*/function v(t){return void 0!==t}
|
|
245
245
|
/**
|
|
246
246
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
247
247
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -276,7 +276,7 @@ function g(r){return"string"==typeof r||r instanceof String}function v(r){return
|
|
|
276
276
|
* }
|
|
277
277
|
*
|
|
278
278
|
*/
|
|
279
|
-
function
|
|
279
|
+
function b(t){if(E(t))return!1;if(0===t.length)return!0;for(let r in t)if(Object.prototype.hasOwnProperty.call(t,r))return!1;return!0}
|
|
280
280
|
/**
|
|
281
281
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
282
282
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -294,7 +294,7 @@ function m(r){if(E(r))return!1;if(0===r.length)return!0;for(let t in r)if(Object
|
|
|
294
294
|
* }
|
|
295
295
|
*
|
|
296
296
|
*/
|
|
297
|
-
function S(
|
|
297
|
+
function S(t){return!m(t)&&0===t.length}
|
|
298
298
|
/**
|
|
299
299
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
300
300
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -312,7 +312,7 @@ function S(r){return!v(r)&&0===r.length}
|
|
|
312
312
|
* }
|
|
313
313
|
*
|
|
314
314
|
*/
|
|
315
|
-
function
|
|
315
|
+
function F(t){return!m(t)&&(!S(t)&&!/\S/.test(t))}
|
|
316
316
|
/**
|
|
317
317
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
318
318
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -330,7 +330,7 @@ function w(r){return!v(r)&&(!S(r)&&!/\S/.test(r))}
|
|
|
330
330
|
* }
|
|
331
331
|
*
|
|
332
332
|
*/
|
|
333
|
-
function
|
|
333
|
+
function O(t){return"symbol"==typeof t}
|
|
334
334
|
/**
|
|
335
335
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
336
336
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -348,7 +348,7 @@ function F(r){return"symbol"==typeof r}
|
|
|
348
348
|
* }
|
|
349
349
|
*
|
|
350
350
|
*/
|
|
351
|
-
function
|
|
351
|
+
function P(t){return!c(t)&&(!!S(t)||(!!e(t)||!!b(t)))}
|
|
352
352
|
/**
|
|
353
353
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
354
354
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -474,7 +474,7 @@ function O(r){return!c(r)&&(!!S(r)||(!!e(r)||!!m(r)))}
|
|
|
474
474
|
}
|
|
475
475
|
*
|
|
476
476
|
*/
|
|
477
|
-
class
|
|
477
|
+
class U{constructor(){this.validators={Boolean:i,Number:N,Integer:A,Float:d,Array:r,String:g,Object:I,Symbol:O,Function:u},this.errors=[]}add(t,r){if(m(t))throw new TypeError("Validator: Expect type to be a string");if(s(r)&&E(r))throw new TypeError("Validator: Expect validator to be an object or a function");if(a(this.validators[t]))throw new TypeError(`Validator: a validator is already defined for type '${t}'`);this.validators[t]=r}remove(t){delete this.validators[t]}getAvalaibleTypes(){const t=[];for(let r in this.validators)t.push(r);return t}check(t,r,n=!0){const e=this.validators[r];if(c(e))throw new TypeError(`Validator: Unable to find schema validation of type '${r}'`);let i=!0;if(u(e))i=e(t);else{if(!I(e))throw new TypeError(`Validator: Unknown validator of type '${r}'`);{let o=!0;for(let u in e){const f=e[u];if(c(f))throw new TypeError(`Validator: Missing validator for key '${u}' of type '${r}'`);const p=t[u],l=f.required;if(c(p)){if(!l)continue;o=!1}let x=f.fn;if(a(x)){if(s(x))throw new TypeError(`Validator: Invalid validation function for '${u}' with type '${r}'`);o=x(p)}else o=this.check(p,f.type,n);if(!1===o&&(this.errors.push(`Validator: Invalid property '${u}' of type '${f.type}' with value '${p}' in object of type '${r}'`),i=!1,n))break}}}return i}}
|
|
478
478
|
/**
|
|
479
479
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
480
480
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -492,7 +492,7 @@ class P{constructor(){this.validators={Boolean:i,Number:h,Integer:A,Float:d,Arra
|
|
|
492
492
|
* }
|
|
493
493
|
*
|
|
494
494
|
*/
|
|
495
|
-
function
|
|
495
|
+
function B(t){return t instanceof ArrayBuffer}
|
|
496
496
|
/**
|
|
497
497
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
498
498
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -510,7 +510,7 @@ function U(r){return r instanceof ArrayBuffer}
|
|
|
510
510
|
* }
|
|
511
511
|
*
|
|
512
512
|
*/
|
|
513
|
-
function
|
|
513
|
+
function V(t){return t instanceof BigInt64Array}
|
|
514
514
|
/**
|
|
515
515
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
516
516
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -528,7 +528,7 @@ function T(r){return r instanceof BigInt64Array}
|
|
|
528
528
|
* }
|
|
529
529
|
*
|
|
530
530
|
*/
|
|
531
|
-
function
|
|
531
|
+
function w(t){return t instanceof BigUint64Array}
|
|
532
532
|
/**
|
|
533
533
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
534
534
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -546,7 +546,7 @@ function B(r){return r instanceof BigUint64Array}
|
|
|
546
546
|
* }
|
|
547
547
|
*
|
|
548
548
|
*/
|
|
549
|
-
function
|
|
549
|
+
function T(t){return t instanceof Float32Array}
|
|
550
550
|
/**
|
|
551
551
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
552
552
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -564,7 +564,7 @@ function V(r){return r instanceof Float32Array}
|
|
|
564
564
|
* }
|
|
565
565
|
*
|
|
566
566
|
*/
|
|
567
|
-
function k(
|
|
567
|
+
function k(t){return t instanceof Float64Array}
|
|
568
568
|
/**
|
|
569
569
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
570
570
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -582,7 +582,7 @@ function k(r){return r instanceof Float64Array}
|
|
|
582
582
|
* }
|
|
583
583
|
*
|
|
584
584
|
*/
|
|
585
|
-
function L(
|
|
585
|
+
function L(t){return t instanceof Int16Array}
|
|
586
586
|
/**
|
|
587
587
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
588
588
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -600,7 +600,7 @@ function L(r){return r instanceof Int16Array}
|
|
|
600
600
|
* }
|
|
601
601
|
*
|
|
602
602
|
*/
|
|
603
|
-
function
|
|
603
|
+
function D(t){return t instanceof Int32Array}
|
|
604
604
|
/**
|
|
605
605
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
606
606
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -618,7 +618,7 @@ function _(r){return r instanceof Int32Array}
|
|
|
618
618
|
* }
|
|
619
619
|
*
|
|
620
620
|
*/
|
|
621
|
-
function
|
|
621
|
+
function _(t){return t instanceof Int8Array}
|
|
622
622
|
/**
|
|
623
623
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
624
624
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -636,7 +636,7 @@ function D(r){return r instanceof Int8Array}
|
|
|
636
636
|
* }
|
|
637
637
|
*
|
|
638
638
|
*/
|
|
639
|
-
function M(
|
|
639
|
+
function M(t){return t instanceof Uint16Array}
|
|
640
640
|
/**
|
|
641
641
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
642
642
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -654,7 +654,7 @@ function M(r){return r instanceof Uint16Array}
|
|
|
654
654
|
* }
|
|
655
655
|
*
|
|
656
656
|
*/
|
|
657
|
-
function R(
|
|
657
|
+
function R(t){return t instanceof Uint32Array}
|
|
658
658
|
/**
|
|
659
659
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
660
660
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -672,7 +672,7 @@ function R(r){return r instanceof Uint32Array}
|
|
|
672
672
|
* }
|
|
673
673
|
*
|
|
674
674
|
*/
|
|
675
|
-
function j(
|
|
675
|
+
function j(t){return t instanceof Uint8Array}
|
|
676
676
|
/**
|
|
677
677
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
678
678
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -690,7 +690,16 @@ function j(r){return r instanceof Uint8Array}
|
|
|
690
690
|
* }
|
|
691
691
|
*
|
|
692
692
|
*/
|
|
693
|
-
function C(
|
|
693
|
+
function C(t){return t instanceof Uint8ClampedArray}exports.Validator=void 0,c(exports.Validator)&&(exports.Validator=new U);
|
|
694
|
+
/**
|
|
695
|
+
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
696
|
+
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
697
|
+
*
|
|
698
|
+
* @module sources/physics/constants
|
|
699
|
+
* @desc Export constants about temperatures
|
|
700
|
+
*
|
|
701
|
+
*/
|
|
702
|
+
const $=4.5e-10,Z=-273.14999999955,G=-459.67;
|
|
694
703
|
/**
|
|
695
704
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
696
705
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -708,7 +717,7 @@ function C(r){return r instanceof Uint8ClampedArray}exports.Validator=void 0,c(e
|
|
|
708
717
|
* }
|
|
709
718
|
*
|
|
710
719
|
*/
|
|
711
|
-
function
|
|
720
|
+
function Y(t){return N(t)&&t>=Z}function K(t){return!Y(t)}
|
|
712
721
|
/**
|
|
713
722
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
714
723
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -725,7 +734,7 @@ function $(r){return h(r)&&r>=-273.14999999955}function Z(r){return!$(r)}
|
|
|
725
734
|
* //...
|
|
726
735
|
* }
|
|
727
736
|
*
|
|
728
|
-
*/function
|
|
737
|
+
*/function X(t){return N(t)&&t>=G}function q(t){return!X(t)}
|
|
729
738
|
/**
|
|
730
739
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
731
740
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -742,7 +751,7 @@ function $(r){return h(r)&&r>=-273.14999999955}function Z(r){return!$(r)}
|
|
|
742
751
|
* //...
|
|
743
752
|
* }
|
|
744
753
|
*
|
|
745
|
-
*/function
|
|
754
|
+
*/function H(t){return N(t)&&t>=$}function z(t){return!H(t)}
|
|
746
755
|
/**
|
|
747
756
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
748
757
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -780,7 +789,7 @@ function $(r){return h(r)&&r>=-273.14999999955}function Z(r){return!$(r)}
|
|
|
780
789
|
* }
|
|
781
790
|
*
|
|
782
791
|
*/
|
|
783
|
-
function
|
|
792
|
+
function J(r){if(m(r)&&!(r instanceof Buffer)&&!(r instanceof URL))return!1;const n=t.statSync(r,{throwIfNoEntry:!1});return a(n)&&n.isBlockDevice()}
|
|
784
793
|
/**
|
|
785
794
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
786
795
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -801,7 +810,7 @@ function q(t){if(v(t)&&!(t instanceof Buffer)&&!(t instanceof URL))throw new Typ
|
|
|
801
810
|
* }
|
|
802
811
|
*
|
|
803
812
|
*/
|
|
804
|
-
function
|
|
813
|
+
function Q(r){return t.existsSync(r)}
|
|
805
814
|
/**
|
|
806
815
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
807
816
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -819,7 +828,7 @@ function H(t){return r.existsSync(t)}
|
|
|
819
828
|
* }
|
|
820
829
|
*
|
|
821
830
|
*/
|
|
822
|
-
function
|
|
831
|
+
function W(t){return Q(t)&&J(t)}
|
|
823
832
|
/**
|
|
824
833
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
825
834
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -840,7 +849,7 @@ function z(r){return H(r)&&q(r)}
|
|
|
840
849
|
* }
|
|
841
850
|
*
|
|
842
851
|
*/
|
|
843
|
-
function
|
|
852
|
+
function tt(r){if(m(r)&&!(r instanceof Buffer)&&!(r instanceof URL))return!1;const n=t.statSync(r,{throwIfNoEntry:!1});return a(n)&&n.isCharacterDevice()}
|
|
844
853
|
/**
|
|
845
854
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
846
855
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -858,7 +867,7 @@ function J(t){if(v(t)&&!(t instanceof Buffer)&&!(t instanceof URL))throw new Typ
|
|
|
858
867
|
* }
|
|
859
868
|
*
|
|
860
869
|
*/
|
|
861
|
-
function
|
|
870
|
+
function rt(t){return Q(t)&&tt(t)}
|
|
862
871
|
/**
|
|
863
872
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
864
873
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -879,7 +888,7 @@ function Q(r){return H(r)&&J(r)}
|
|
|
879
888
|
* }
|
|
880
889
|
*
|
|
881
890
|
*/
|
|
882
|
-
function
|
|
891
|
+
function nt(r){if(m(r)&&!(r instanceof Buffer)&&!(r instanceof URL))return!1;const n=t.statSync(r,{throwIfNoEntry:!1});return a(n)&&n.isDirectory()}
|
|
883
892
|
/**
|
|
884
893
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
885
894
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -900,7 +909,7 @@ function W(t){if(v(t)&&!(t instanceof Buffer)&&!(t instanceof URL))throw new Typ
|
|
|
900
909
|
* }
|
|
901
910
|
*
|
|
902
911
|
*/
|
|
903
|
-
function
|
|
912
|
+
function et(r){return nt(r)&&0===t.readdirSync(r).length}
|
|
904
913
|
/**
|
|
905
914
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
906
915
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -918,7 +927,7 @@ function rr(t){return W(t)&&0===r.readdirSync(t).length}
|
|
|
918
927
|
* }
|
|
919
928
|
*
|
|
920
929
|
*/
|
|
921
|
-
function
|
|
930
|
+
function it(t){return Q(t)&&nt(t)}
|
|
922
931
|
/**
|
|
923
932
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
924
933
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -939,7 +948,7 @@ function tr(r){return H(r)&&W(r)}
|
|
|
939
948
|
* }
|
|
940
949
|
*
|
|
941
950
|
*/
|
|
942
|
-
function
|
|
951
|
+
function ot(r){if(m(r)&&!(r instanceof Buffer)&&!(r instanceof URL))return!1;const n=t.statSync(r,{throwIfNoEntry:!1});return a(n)&&n.isFIFO()}
|
|
943
952
|
/**
|
|
944
953
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
945
954
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -960,7 +969,7 @@ function nr(t){if(v(t)&&!(t instanceof Buffer)&&!(t instanceof URL))throw new Ty
|
|
|
960
969
|
* }
|
|
961
970
|
*
|
|
962
971
|
*/
|
|
963
|
-
function
|
|
972
|
+
function ut(t){return Q(t)&&ot(t)}
|
|
964
973
|
/**
|
|
965
974
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
966
975
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -981,7 +990,7 @@ function er(r){return H(r)&&nr(r)}
|
|
|
981
990
|
* }
|
|
982
991
|
*
|
|
983
992
|
*/
|
|
984
|
-
function
|
|
993
|
+
function st(r){if(m(r)&&!(r instanceof Buffer)&&!(r instanceof URL))return!1;const n=t.statSync(r,{throwIfNoEntry:!1});return a(n)&&n.isFile()}
|
|
985
994
|
/**
|
|
986
995
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
987
996
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1002,7 +1011,7 @@ function ir(t){if(v(t)&&!(t instanceof Buffer)&&!(t instanceof URL))throw new Ty
|
|
|
1002
1011
|
* }
|
|
1003
1012
|
*
|
|
1004
1013
|
*/
|
|
1005
|
-
function
|
|
1014
|
+
function ft(r,n=0){return(!m(r)||r instanceof Buffer||r instanceof URL)&&(st(r)&&t.statSync(r).size<=n)}
|
|
1006
1015
|
/**
|
|
1007
1016
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1008
1017
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1020,7 +1029,7 @@ function or(t,n=0){if(v(t)&&!(t instanceof Buffer)&&!(t instanceof URL))throw ne
|
|
|
1020
1029
|
* }
|
|
1021
1030
|
*
|
|
1022
1031
|
*/
|
|
1023
|
-
function
|
|
1032
|
+
function at(t){return Q(t)&&st(t)}
|
|
1024
1033
|
/**
|
|
1025
1034
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1026
1035
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1041,7 +1050,7 @@ function ur(r){return H(r)&&ir(r)}
|
|
|
1041
1050
|
* }
|
|
1042
1051
|
*
|
|
1043
1052
|
*/
|
|
1044
|
-
function
|
|
1053
|
+
function ct(r){if(m(r)&&!(r instanceof Buffer)&&!(r instanceof URL))return!1;const n=t.statSync(r,{throwIfNoEntry:!1});return a(n)&&n.isSocket()}
|
|
1045
1054
|
/**
|
|
1046
1055
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1047
1056
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1059,7 +1068,7 @@ function sr(t){if(v(t)&&!(t instanceof Buffer)&&!(t instanceof URL))throw new Ty
|
|
|
1059
1068
|
* }
|
|
1060
1069
|
*
|
|
1061
1070
|
*/
|
|
1062
|
-
function
|
|
1071
|
+
function pt(t){return Q(t)&&ct(t)}
|
|
1063
1072
|
/**
|
|
1064
1073
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1065
1074
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1080,7 +1089,7 @@ function fr(r){return H(r)&&sr(r)}
|
|
|
1080
1089
|
* }
|
|
1081
1090
|
*
|
|
1082
1091
|
*/
|
|
1083
|
-
function
|
|
1092
|
+
function lt(r){if(m(r)&&!(r instanceof Buffer)&&!(r instanceof URL))return!1;const n=t.statSync(r,{throwIfNoEntry:!1});return a(n)&&n.isSymbolicLink()}
|
|
1084
1093
|
/**
|
|
1085
1094
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1086
1095
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1098,7 +1107,7 @@ function ar(t){if(v(t)&&!(t instanceof Buffer)&&!(t instanceof URL))throw new Ty
|
|
|
1098
1107
|
* }
|
|
1099
1108
|
*
|
|
1100
1109
|
*/
|
|
1101
|
-
function
|
|
1110
|
+
function xt(t){return Q(t)&<(t)}exports.ABSOLUTE_ZERO_CELSIUS=Z,exports.ABSOLUTE_ZERO_FAHRENHEIT=G,exports.ABSOLUTE_ZERO_KELVIN=$,exports.isArray=r,exports.isArrayBuffer=B,exports.isArrayOfArray=
|
|
1102
1111
|
/**
|
|
1103
1112
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1104
1113
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1116,7 +1125,7 @@ function cr(r){return H(r)&&ar(r)}exports.ABSOLUTE_ZERO_CELSIUS=-273.14999999955
|
|
|
1116
1125
|
* }
|
|
1117
1126
|
*
|
|
1118
1127
|
*/
|
|
1119
|
-
function(
|
|
1128
|
+
function(t){if(n(t))return!1;if(e(t))return!1;for(let r=0,e=t.length;r<e;r++)if(n(t[r]))return!1;return!0},exports.isArrayOfBoolean=function(t){if(n(t))return!1;if(e(t))return!1;for(let r=0,n=t.length;r<n;r++)if(o(t[r]))return!1;return!0},exports.isArrayOfFunction=function(t){if(n(t))return!1;if(e(t))return!1;for(let r=0,n=t.length;r<n;r++)if(s(t[r]))return!1;return!0},exports.isArrayOfMultiElement=
|
|
1120
1129
|
/**
|
|
1121
1130
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1122
1131
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1134,7 +1143,7 @@ function(r){if(n(r))return!1;if(e(r))return!1;for(let t=0,e=r.length;t<e;t++)if(
|
|
|
1134
1143
|
* }
|
|
1135
1144
|
*
|
|
1136
1145
|
*/
|
|
1137
|
-
function(
|
|
1146
|
+
function(t){return!n(t)&&t.length>1}
|
|
1138
1147
|
/**
|
|
1139
1148
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1140
1149
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1151,7 +1160,7 @@ function(r){return!n(r)&&r.length>1}
|
|
|
1151
1160
|
* //...
|
|
1152
1161
|
* }
|
|
1153
1162
|
*
|
|
1154
|
-
*/,exports.isArrayOfNull=function(
|
|
1163
|
+
*/,exports.isArrayOfNull=function(t){if(n(t))return!1;if(e(t))return!1;for(let r=0,n=t.length;r<n;r++)if(f(t[r]))return!1;return!0},exports.isArrayOfNumber=
|
|
1155
1164
|
/**
|
|
1156
1165
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1157
1166
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1169,7 +1178,7 @@ function(r){return!n(r)&&r.length>1}
|
|
|
1169
1178
|
* }
|
|
1170
1179
|
*
|
|
1171
1180
|
*/
|
|
1172
|
-
function(
|
|
1181
|
+
function(t){if(n(t))return!1;if(e(t))return!1;for(let r=0,n=t.length;r<n;r++)if(h(t[r]))return!1;return!0},exports.isArrayOfObject=function(t){if(n(t))return!1;if(e(t))return!1;for(let r=0,n=t.length;r<n;r++)if(E(t[r]))return!1;return!0},exports.isArrayOfSingleElement=
|
|
1173
1182
|
/**
|
|
1174
1183
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1175
1184
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1187,7 +1196,7 @@ function(r){if(n(r))return!1;if(e(r))return!1;for(let t=0,n=r.length;t<n;t++)if(
|
|
|
1187
1196
|
* }
|
|
1188
1197
|
*
|
|
1189
1198
|
*/
|
|
1190
|
-
function(
|
|
1199
|
+
function(t){return!n(t)&&1===t.length},exports.isArrayOfString=function(t){if(n(t))return!1;if(e(t))return!1;for(let r=0,n=t.length;r<n;r++)if(m(t[r]))return!1;return!0},exports.isArrayOfUndefined=function(t){if(n(t))return!1;if(e(t))return!1;for(let r=0,n=t.length;r<n;r++)if(v(t[r]))return!1;return!0},exports.isBigInt64Array=V,exports.isBigUint64Array=w,exports.isBlankString=F,exports.isBlockDevicePath=J,exports.isBoolean=i,exports.isCelsius=Y,exports.isCharacterDevicePath=tt,exports.isDefined=a,exports.isDirectoryPath=nt,exports.isEmpty=P,exports.isEmptyArray=e,exports.isEmptyDirectory=et,exports.isEmptyFile=ft,exports.isEmptyObject=b,exports.isEmptyString=S,exports.isFIFOPath=ot,exports.isFahrenheit=X,exports.isFalse=function(t){return i(t)&&!1===t}
|
|
1191
1200
|
/**
|
|
1192
1201
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1193
1202
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1204,7 +1213,7 @@ function(r){return!n(r)&&1===r.length},exports.isArrayOfString=function(r){if(n(
|
|
|
1204
1213
|
* //...
|
|
1205
1214
|
* }
|
|
1206
1215
|
*
|
|
1207
|
-
*/,exports.isFilePath=
|
|
1216
|
+
*/,exports.isFilePath=st,exports.isFinite=function(t){return Number.isFinite(t)}
|
|
1208
1217
|
/**
|
|
1209
1218
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1210
1219
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1221,7 +1230,7 @@ function(r){return!n(r)&&1===r.length},exports.isArrayOfString=function(r){if(n(
|
|
|
1221
1230
|
* //...
|
|
1222
1231
|
* }
|
|
1223
1232
|
*
|
|
1224
|
-
*/,exports.isFloat=d,exports.isFloat32Array=
|
|
1233
|
+
*/,exports.isFloat=d,exports.isFloat32Array=T,exports.isFloat64Array=k,exports.isFunction=u,exports.isInfinite=x,exports.isInfiniteNegative=p,exports.isInfinitePositive=l,exports.isInt16Array=L,exports.isInt32Array=D,exports.isInt8Array=_,exports.isInteger=A,exports.isInvalidBlockDevicePath=function(t){return!W(t)},exports.isInvalidCharacterDevicePath=function(t){return!rt(t)},exports.isInvalidDirectoryPath=function(t){return!it(t)},exports.isInvalidFIFOPath=function(t){return!ut(t)},exports.isInvalidFilePath=function(t){return!at(t)},exports.isInvalidPath=function(t){return!Q(t)},exports.isInvalidSocketPath=function(t){return!pt(t)},exports.isInvalidSymbolicLinkPath=function(t){return!xt(t)},exports.isKelvin=H,exports.isMaxNegative=function(t){return t===-Number.MAX_VALUE}
|
|
1225
1234
|
/**
|
|
1226
1235
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1227
1236
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1238,7 +1247,7 @@ function(r){return!n(r)&&1===r.length},exports.isArrayOfString=function(r){if(n(
|
|
|
1238
1247
|
* //...
|
|
1239
1248
|
* }
|
|
1240
1249
|
*
|
|
1241
|
-
*/,exports.isMaxPositive=function(
|
|
1250
|
+
*/,exports.isMaxPositive=function(t){return t===Number.MAX_VALUE},exports.isMaxSafeInteger=
|
|
1242
1251
|
/**
|
|
1243
1252
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1244
1253
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1256,7 +1265,7 @@ function(r){return!n(r)&&1===r.length},exports.isArrayOfString=function(r){if(n(
|
|
|
1256
1265
|
* }
|
|
1257
1266
|
*
|
|
1258
1267
|
*/
|
|
1259
|
-
function(
|
|
1268
|
+
function(t){return t===Number.MAX_SAFE_INTEGER},exports.isMinNegative=function(t){return t===-Number.MIN_VALUE},exports.isMinPositive=function(t){return t===Number.MIN_VALUE},exports.isMinSafeInteger=function(t){return t===Number.MIN_SAFE_INTEGER},exports.isNaN=function(t){return Number.isNaN(t)},exports.isNotArray=n,exports.isNotArrayBuffer=function(t){return!B(t)},exports.isNotArrayOfArray=function(t){if(n(t))return!0;if(e(t))return!0;for(let n=0,e=t.length;n<e;n++)if(r(t[n]))return!1;return!0},exports.isNotArrayOfBoolean=function(t){if(n(t))return!0;if(e(t))return!0;for(let r=0,n=t.length;r<n;r++)if(o(t[r]))return!0;return!1},exports.isNotArrayOfFunction=function(t){if(n(t))return!0;if(e(t))return!0;for(let r=0,n=t.length;r<n;r++)if(s(t[r]))return!0;return!1},exports.isNotArrayOfNull=function(t){if(n(t))return!0;if(e(t))return!0;for(let r=0,n=t.length;r<n;r++)if(f(t[r]))return!0;return!1},exports.isNotArrayOfNumber=function(t){if(n(t))return!0;if(e(t))return!0;for(let r=0,n=t.length;r<n;r++)if(h(t[r]))return!0;return!1},exports.isNotArrayOfObject=function(t){if(n(t))return!0;if(e(t))return!0;for(let r=0,n=t.length;r<n;r++)if(E(t[r]))return!0;return!1},exports.isNotArrayOfString=function(t){if(n(t))return!0;if(e(t))return!0;for(let r=0,n=t.length;r<n;r++)if(m(t[r]))return!0;return!1}
|
|
1260
1269
|
/**
|
|
1261
1270
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1262
1271
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1273,7 +1282,7 @@ function(r){return r===Number.MAX_SAFE_INTEGER},exports.isMinNegative=function(r
|
|
|
1273
1282
|
* //...
|
|
1274
1283
|
* }
|
|
1275
1284
|
*
|
|
1276
|
-
*/,exports.isNotArrayOfUndefined=function(
|
|
1285
|
+
*/,exports.isNotArrayOfUndefined=function(t){if(n(t))return!0;if(e(t))return!0;for(let r=0,n=t.length;r<n;r++)if(v(t[r]))return!0;return!1}
|
|
1277
1286
|
/**
|
|
1278
1287
|
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1279
1288
|
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
@@ -1290,12 +1299,4 @@ function(r){return r===Number.MAX_SAFE_INTEGER},exports.isMinNegative=function(r
|
|
|
1290
1299
|
* //...
|
|
1291
1300
|
* }
|
|
1292
1301
|
*
|
|
1293
|
-
*/,exports.isNotBigInt64Array=function(
|
|
1294
|
-
/**
|
|
1295
|
-
* @author [Tristan Valcke]{@link https://github.com/Itee}
|
|
1296
|
-
* @license [BSD-3-Clause]{@link https://opensource.org/licenses/BSD-3-Clause}
|
|
1297
|
-
*
|
|
1298
|
-
* @module sources/physics/constants
|
|
1299
|
-
* @desc Export constants about temperatures
|
|
1300
|
-
*
|
|
1301
|
-
*/,exports.isNotUndefined=b,exports.isNull=function(r){return null===r},exports.isNumber=h,exports.isNumberNegative=function(r){return h(r)&&r<0},exports.isNumberPositive=function(r){return!N(r)&&(r>0||x(r)||l(r))},exports.isObject=I,exports.isSocketPath=sr,exports.isString=g,exports.isSymbol=F,exports.isSymbolicLinkPath=ar,exports.isTemperature=function(r){return K(r)||$(r)||G(r)},exports.isTrue=function(r){return i(r)&&!0===r},exports.isUint16Array=M,exports.isUint32Array=R,exports.isUint8Array=j,exports.isUint8ClampedArray=C,exports.isUndefined=function(r){return void 0===r},exports.isValidBlockDevicePath=z,exports.isValidCharacterDevicePath=Q,exports.isValidDirectoryPath=tr,exports.isValidFIFOPath=er,exports.isValidFilePath=ur,exports.isValidPath=H,exports.isValidSocketPath=fr,exports.isValidSymbolicLinkPath=cr,exports.isZero=function(r){return 0===r},exports.isZeroNegative=function(r){return 0===r&&1/r===Number.NEGATIVE_INFINITY},exports.isZeroPositive=x;
|
|
1302
|
+
*/,exports.isNotBigInt64Array=function(t){return!V(t)},exports.isNotBigUint64Array=function(t){return!w(t)},exports.isNotBlankString=function(t){return!F(t)},exports.isNotBlockDevicePath=function(t){return!J(t)},exports.isNotBoolean=o,exports.isNotCelsius=K,exports.isNotCharacterDevicePath=function(t){return!tt(t)},exports.isNotDefined=c,exports.isNotDirectoryPath=function(t){return!nt(t)},exports.isNotEmpty=function(t){return!P(t)},exports.isNotEmptyArray=function(t){return!!n(t)||t.length>0},exports.isNotEmptyDirectory=function(t){return!et(t)},exports.isNotEmptyFile=function(t,r=0){return!ft(t,r)},exports.isNotEmptyObject=function(t){return!b(t)},exports.isNotEmptyString=function(t){return!S(t)},exports.isNotFIFOPath=function(t){return!ot(t)},exports.isNotFahrenheit=q,exports.isNotFilePath=function(t){return!st(t)},exports.isNotFloat32Array=function(t){return!T(t)},exports.isNotFloat64Array=function(t){return!k(t)},exports.isNotFunction=s,exports.isNotInt16Array=function(t){return!L(t)},exports.isNotInt32Array=function(t){return!D(t)},exports.isNotInt8Array=function(t){return!_(t)},exports.isNotKelvin=z,exports.isNotNull=f,exports.isNotNumber=h,exports.isNotObject=E,exports.isNotSocketPath=function(t){return!ct(t)},exports.isNotString=m,exports.isNotSymbol=function(t){return"symbol"!=typeof t},exports.isNotSymbolicLinkPath=function(t){return!lt(t)},exports.isNotTemperature=function(t){return z(t)&&K(t)&&q(t)},exports.isNotUint16Array=function(t){return!M(t)},exports.isNotUint32Array=function(t){return!R(t)},exports.isNotUint8Array=function(t){return!j(t)},exports.isNotUint8ClampedArray=function(t){return!C(t)},exports.isNotUndefined=v,exports.isNull=function(t){return null===t},exports.isNumber=N,exports.isNumberNegative=function(t){return N(t)&&t<0},exports.isNumberPositive=function(t){return!h(t)&&(t>0||y(t)||l(t))},exports.isObject=I,exports.isSocketPath=ct,exports.isString=g,exports.isSymbol=O,exports.isSymbolicLinkPath=lt,exports.isTemperature=function(t){return H(t)||Y(t)||X(t)},exports.isTrue=function(t){return i(t)&&!0===t},exports.isUint16Array=M,exports.isUint32Array=R,exports.isUint8Array=j,exports.isUint8ClampedArray=C,exports.isUndefined=function(t){return void 0===t},exports.isValidBlockDevicePath=W,exports.isValidCharacterDevicePath=rt,exports.isValidDirectoryPath=it,exports.isValidFIFOPath=ut,exports.isValidFilePath=at,exports.isValidPath=Q,exports.isValidSocketPath=pt,exports.isValidSymbolicLinkPath=xt,exports.isZero=function(t){return 0===t},exports.isZeroNegative=function(t){return 0===t&&1/t===Number.NEGATIVE_INFINITY},exports.isZeroPositive=y;
|