umt 2.1.1 → 2.2.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/module/Advance/rangeAdvance.d.ts +10 -6
- package/module/Advance/rangeAdvance.js +10 -6
- package/module/Advance/rangeAdvance.js.map +1 -1
- package/module/Array/arraysJoin.d.ts +4 -4
- package/module/Array/arraysJoin.js +4 -4
- package/module/Array/binarySearch.d.ts +4 -3
- package/module/Array/binarySearch.js +4 -3
- package/module/Array/binarySearch.js.map +1 -1
- package/module/Array/checkFlagAlignment.d.ts +3 -3
- package/module/Array/checkFlagAlignment.js +7 -7
- package/module/Array/checkFlagAlignment.js.map +1 -1
- package/module/Array/chunk.d.ts +4 -4
- package/module/Array/compact.d.ts +8 -0
- package/module/Array/compact.js +8 -0
- package/module/Array/compact.js.map +1 -1
- package/module/Array/compareFunctionDefault.d.ts +13 -0
- package/module/Array/compareFunctionDefault.js +13 -0
- package/module/Array/compareFunctionDefault.js.map +1 -1
- package/module/Array/drop.d.ts +5 -5
- package/module/Array/drop.js +5 -5
- package/module/Array/dualPivotQuickSort.d.ts +16 -0
- package/module/Array/dualPivotQuickSort.js +152 -0
- package/module/Array/dualPivotQuickSort.js.map +1 -0
- package/module/Array/first.d.ts +3 -3
- package/module/Array/first.js +3 -3
- package/module/Array/generateNumberArray.d.ts +6 -6
- package/module/Array/generateNumberArray.js +6 -6
- package/module/Array/getArraysCommon.d.ts +4 -4
- package/module/Array/getArraysCommon.js +4 -4
- package/module/Array/getArraysDiff.d.ts +4 -4
- package/module/Array/getArraysDiff.js +4 -4
- package/module/Array/groupBy.d.ts +8 -4
- package/module/Array/groupBy.js +8 -4
- package/module/Array/groupBy.js.map +1 -1
- package/module/Array/index.d.ts +1 -0
- package/module/Array/index.js +1 -0
- package/module/Array/index.js.map +1 -1
- package/module/Array/insertionSort.d.ts +8 -7
- package/module/Array/insertionSort.js +6 -6
- package/module/Array/insertionSort.js.map +1 -1
- package/module/Array/mergeSort.d.ts +6 -5
- package/module/Array/mergeSort.js +9 -9
- package/module/Array/mergeSort.js.map +1 -1
- package/module/Array/quickSort.d.ts +12 -11
- package/module/Array/quickSort.js +44 -10
- package/module/Array/quickSort.js.map +1 -1
- package/module/Array/randomSelect.d.ts +5 -5
- package/module/Array/randomSelect.js +5 -5
- package/module/Array/range.d.ts +5 -5
- package/module/Array/range.js +26 -10
- package/module/Array/range.js.map +1 -1
- package/module/Array/shuffle.d.ts +3 -3
- package/module/Array/shuffle.js +3 -3
- package/module/Array/shuffle2DArray.d.ts +4 -4
- package/module/Array/shuffle2DArray.js +6 -6
- package/module/Array/shuffle2DArray.js.map +1 -1
- package/module/Array/sum.d.ts +3 -3
- package/module/Array/sum.js +4 -4
- package/module/Array/sum.js.map +1 -1
- package/module/Array/timSort.d.ts +13 -11
- package/module/Array/timSort.js +33 -9
- package/module/Array/timSort.js.map +1 -1
- package/module/Array/zip.d.ts +6 -3
- package/module/Array/zip.js +6 -3
- package/module/Array/zip.js.map +1 -1
- package/module/Array/zipLongest.d.ts +8 -5
- package/module/Array/zipLongest.js +8 -5
- package/module/Array/zipLongest.js.map +1 -1
- package/module/Color/cmykToRgba.d.ts +7 -7
- package/module/Color/cmykToRgba.js +12 -12
- package/module/Color/cmykToRgba.js.map +1 -1
- package/module/Color/hexaToRgba.d.ts +4 -3
- package/module/Color/hexaToRgba.js +18 -7
- package/module/Color/hexaToRgba.js.map +1 -1
- package/module/Color/hslaToRgba.d.ts +7 -6
- package/module/Color/hslaToRgba.js +19 -15
- package/module/Color/hslaToRgba.js.map +1 -1
- package/module/Color/rgbaToCmyk.d.ts +3 -3
- package/module/Color/rgbaToCmyk.js +14 -3
- package/module/Color/rgbaToCmyk.js.map +1 -1
- package/module/Color/rgbaToHexA.d.ts +4 -4
- package/module/Color/rgbaToHexA.js +5 -5
- package/module/Color/rgbaToHexA.js.map +1 -1
- package/module/Color/rgbaToHsla.d.ts +4 -3
- package/module/Color/rgbaToHsla.js +15 -3
- package/module/Color/rgbaToHsla.js.map +1 -1
- package/module/Consts/clock.d.ts +11 -11
- package/module/Consts/clock.js +11 -11
- package/module/Consts/httpStatus/httpClientErrorStatus.d.ts +28 -0
- package/module/Consts/httpStatus/httpClientErrorStatus.js +28 -0
- package/module/Consts/httpStatus/httpClientErrorStatus.js.map +1 -1
- package/module/Consts/httpStatus/httpInformationalStatus.d.ts +9 -0
- package/module/Consts/httpStatus/httpInformationalStatus.js +9 -0
- package/module/Consts/httpStatus/httpInformationalStatus.js.map +1 -1
- package/module/Consts/httpStatus/httpRedirectionStatus.d.ts +11 -0
- package/module/Consts/httpStatus/httpRedirectionStatus.js +11 -0
- package/module/Consts/httpStatus/httpRedirectionStatus.js.map +1 -1
- package/module/Consts/httpStatus/httpServerErrorStatus.d.ts +10 -0
- package/module/Consts/httpStatus/httpServerErrorStatus.js +10 -0
- package/module/Consts/httpStatus/httpServerErrorStatus.js.map +1 -1
- package/module/Consts/httpStatus/httpSuccessStatus.d.ts +11 -0
- package/module/Consts/httpStatus/httpSuccessStatus.js +11 -0
- package/module/Consts/httpStatus/httpSuccessStatus.js.map +1 -1
- package/module/Date/birthday.d.ts +7 -6
- package/module/Date/birthday.js +7 -6
- package/module/Date/birthday.js.map +1 -1
- package/module/Date/dateRange.d.ts +7 -4
- package/module/Date/dateRange.js +7 -4
- package/module/Date/dateRange.js.map +1 -1
- package/module/Date/dayOfWeek.d.ts +4 -4
- package/module/Date/dayOfWeek.js +4 -4
- package/module/Date/format.d.ts +30 -4
- package/module/Date/format.js +30 -4
- package/module/Date/format.js.map +1 -1
- package/module/Date/getDay.d.ts +8 -5
- package/module/Date/getDay.js +8 -5
- package/module/Date/getDay.js.map +1 -1
- package/module/Date/getTimezoneOffsetString.d.ts +3 -3
- package/module/Date/getTimezoneOffsetString.js +3 -3
- package/module/Date/isLeapYear.d.ts +8 -3
- package/module/Date/isLeapYear.js +8 -3
- package/module/Date/isLeapYear.js.map +1 -1
- package/module/Date/new.d.ts +20 -20
- package/module/Date/new.js +21 -21
- package/module/Date/new.js.map +1 -1
- package/module/Date/now.d.ts +7 -4
- package/module/Date/now.js +7 -4
- package/module/Date/now.js.map +1 -1
- package/module/Error/safeExecute.d.ts +21 -0
- package/module/Error/safeExecute.js +20 -0
- package/module/Error/safeExecute.js.map +1 -1
- package/module/IP/cidrToLong.d.ts +4 -3
- package/module/IP/cidrToLong.js +10 -4
- package/module/IP/cidrToLong.js.map +1 -1
- package/module/IP/cidrToSubnetMask.d.ts +4 -3
- package/module/IP/cidrToSubnetMask.js +4 -3
- package/module/IP/cidrToSubnetMask.js.map +1 -1
- package/module/IP/getIpClass.d.ts +3 -3
- package/module/IP/getIpClass.js +30 -18
- package/module/IP/getIpClass.js.map +1 -1
- package/module/IP/getNetworkAddress.d.ts +5 -4
- package/module/IP/getNetworkAddress.js +36 -6
- package/module/IP/getNetworkAddress.js.map +1 -1
- package/module/IP/ipToBinaryString.d.ts +4 -3
- package/module/IP/ipToBinaryString.js +32 -7
- package/module/IP/ipToBinaryString.js.map +1 -1
- package/module/IP/ipToLong.d.ts +4 -3
- package/module/IP/ipToLong.js +4 -3
- package/module/IP/ipToLong.js.map +1 -1
- package/module/IP/isInRange.d.ts +6 -5
- package/module/IP/isInRange.js +33 -7
- package/module/IP/isInRange.js.map +1 -1
- package/module/IP/isPrivateIp.d.ts +4 -3
- package/module/IP/isPrivateIp.js +17 -9
- package/module/IP/isPrivateIp.js.map +1 -1
- package/module/IP/longToIp.d.ts +4 -3
- package/module/IP/longToIp.js +16 -4
- package/module/IP/longToIp.js.map +1 -1
- package/module/IP/subnetMaskToCidr.d.ts +4 -3
- package/module/IP/subnetMaskToCidr.js +28 -12
- package/module/IP/subnetMaskToCidr.js.map +1 -1
- package/module/Math/addition.d.ts +3 -3
- package/module/Math/addition.js +3 -3
- package/module/Math/average.d.ts +7 -4
- package/module/Math/average.js +7 -4
- package/module/Math/average.js.map +1 -1
- package/module/Math/bitwise.d.ts +5 -5
- package/module/Math/bitwise.js +5 -5
- package/module/Math/calculator/calculator.d.ts +9 -7
- package/module/Math/calculator/calculator.js +9 -7
- package/module/Math/calculator/calculator.js.map +1 -1
- package/module/Math/calculator/calculatorInitialization.d.ts +4 -3
- package/module/Math/calculator/calculatorInitialization.js +6 -5
- package/module/Math/calculator/calculatorInitialization.js.map +1 -1
- package/module/Math/calculator/convertCurrency.d.ts +6 -4
- package/module/Math/calculator/convertCurrency.js +6 -4
- package/module/Math/calculator/convertCurrency.js.map +1 -1
- package/module/Math/calculator/core.js +13 -13
- package/module/Math/calculator/core.js.map +1 -1
- package/module/Math/calculator/literalExpression.d.ts +5 -3
- package/module/Math/calculator/literalExpression.js +12 -10
- package/module/Math/calculator/literalExpression.js.map +1 -1
- package/module/Math/degToRad.d.ts +3 -3
- package/module/Math/degToRad.js +3 -3
- package/module/Math/deviationValue.d.ts +5 -5
- package/module/Math/deviationValue.js +5 -5
- package/module/Math/division.d.ts +5 -5
- package/module/Math/division.js +31 -21
- package/module/Math/division.js.map +1 -1
- package/module/Math/factorial.d.ts +3 -3
- package/module/Math/factorial.js +3 -3
- package/module/Math/factorize.d.ts +3 -3
- package/module/Math/factorize.js +3 -3
- package/module/Math/flexibleNumberConversion.d.ts +11 -11
- package/module/Math/flexibleNumberConversion.js +19 -19
- package/module/Math/flexibleNumberConversion.js.map +1 -1
- package/module/Math/gcd.d.ts +5 -5
- package/module/Math/gcd.js +6 -6
- package/module/Math/gcd.js.map +1 -1
- package/module/Math/getDecimalLength.d.ts +7 -4
- package/module/Math/getDecimalLength.js +9 -5
- package/module/Math/getDecimalLength.js.map +1 -1
- package/module/Math/lcm.d.ts +4 -4
- package/module/Math/lcm.js +5 -5
- package/module/Math/lcm.js.map +1 -1
- package/module/Math/linearCongruentialGenerator.d.ts +6 -6
- package/module/Math/linearCongruentialGenerator.js +6 -6
- package/module/Math/mathConverter.d.ts +7 -3
- package/module/Math/mathConverter.js +7 -3
- package/module/Math/mathConverter.js.map +1 -1
- package/module/Math/mathSeparator.d.ts +8 -3
- package/module/Math/mathSeparator.js +8 -3
- package/module/Math/mathSeparator.js.map +1 -1
- package/module/Math/max.d.ts +4 -3
- package/module/Math/max.js +4 -3
- package/module/Math/max.js.map +1 -1
- package/module/Math/median.d.ts +3 -3
- package/module/Math/median.js +3 -3
- package/module/Math/min.d.ts +4 -3
- package/module/Math/min.js +4 -3
- package/module/Math/min.js.map +1 -1
- package/module/Math/multiples.d.ts +4 -4
- package/module/Math/multiples.js +4 -4
- package/module/Math/multiplication.d.ts +3 -3
- package/module/Math/multiplication.js +3 -3
- package/module/Math/nCr.d.ts +7 -4
- package/module/Math/nCr.js +7 -4
- package/module/Math/nCr.js.map +1 -1
- package/module/Math/nHr.d.ts +7 -4
- package/module/Math/nHr.js +7 -4
- package/module/Math/nHr.js.map +1 -1
- package/module/Math/nPr.d.ts +7 -4
- package/module/Math/nPr.js +7 -4
- package/module/Math/nPr.js.map +1 -1
- package/module/Math/primeFactorization.d.ts +6 -3
- package/module/Math/primeFactorization.js +11 -8
- package/module/Math/primeFactorization.js.map +1 -1
- package/module/Math/quotient.d.ts +7 -4
- package/module/Math/quotient.js +7 -4
- package/module/Math/quotient.js.map +1 -1
- package/module/Math/radToDeg.d.ts +5 -3
- package/module/Math/radToDeg.js +5 -3
- package/module/Math/radToDeg.js.map +1 -1
- package/module/Math/random.d.ts +6 -5
- package/module/Math/random.js +6 -5
- package/module/Math/random.js.map +1 -1
- package/module/Math/reduce.d.ts +9 -4
- package/module/Math/reduce.js +16 -6
- package/module/Math/reduce.js.map +1 -1
- package/module/Math/repeatedTrial.d.ts +5 -5
- package/module/Math/repeatedTrial.js +5 -5
- package/module/Math/roundOf.d.ts +7 -5
- package/module/Math/roundOf.js +8 -6
- package/module/Math/roundOf.js.map +1 -1
- package/module/Math/solveEquation.d.ts +12 -13
- package/module/Math/solveEquation.js +32 -37
- package/module/Math/solveEquation.js.map +1 -1
- package/module/Math/standardDeviation.d.ts +8 -3
- package/module/Math/standardDeviation.js +13 -7
- package/module/Math/standardDeviation.js.map +1 -1
- package/module/Math/subtract.d.ts +10 -4
- package/module/Math/subtract.js +12 -6
- package/module/Math/subtract.js.map +1 -1
- package/module/Math/toBaseN.d.ts +8 -6
- package/module/Math/toBaseN.js +9 -7
- package/module/Math/toBaseN.js.map +1 -1
- package/module/Math/toCelsius.d.ts +5 -3
- package/module/Math/toCelsius.js +5 -3
- package/module/Math/toCelsius.js.map +1 -1
- package/module/Math/toKelvin.d.ts +5 -3
- package/module/Math/toKelvin.js +5 -3
- package/module/Math/toKelvin.js.map +1 -1
- package/module/Math/uuidv7.d.ts +10 -2
- package/module/Math/uuidv7.js +10 -2
- package/module/Math/uuidv7.js.map +1 -1
- package/module/Math/valueSwap.d.ts +5 -4
- package/module/Math/valueSwap.js +5 -4
- package/module/Math/valueSwap.js.map +1 -1
- package/module/Math/xoshiro256.d.ts +8 -3
- package/module/Math/xoshiro256.js +8 -3
- package/module/Math/xoshiro256.js.map +1 -1
- package/module/Object/has.d.ts +4 -4
- package/module/Object/has.js +4 -4
- package/module/Object/keyBy.d.ts +3 -3
- package/module/Object/keyBy.js +4 -4
- package/module/Object/pick.d.ts +6 -6
- package/module/Object/pick.js +6 -6
- package/module/Object/pickDeep.d.ts +7 -7
- package/module/Object/pickDeep.js +7 -7
- package/module/Simple/Array/quickSortSimple.d.ts +9 -7
- package/module/Simple/Array/quickSortSimple.js +7 -6
- package/module/Simple/Array/quickSortSimple.js.map +1 -1
- package/module/Simple/Date/birthdaySimple.d.ts +4 -4
- package/module/Simple/Date/birthdaySimple.js +4 -4
- package/module/Simple/Date/dayOfWeekSimple.d.ts +4 -4
- package/module/Simple/Date/nowSimple.d.ts +3 -3
- package/module/Simple/Date/nowSimple.js +3 -3
- package/module/Simple/Math/deviationValueSimple.d.ts +10 -11
- package/module/Simple/Math/deviationValueSimple.js +14 -13
- package/module/Simple/Math/deviationValueSimple.js.map +1 -1
- package/module/String/deleteSpaces.d.ts +8 -4
- package/module/String/deleteSpaces.js +8 -4
- package/module/String/deleteSpaces.js.map +1 -1
- package/module/String/formatString.d.ts +8 -8
- package/module/String/formatString.js +7 -7
- package/module/String/formatString.js.map +1 -1
- package/module/String/fromBase64.d.ts +4 -3
- package/module/String/fromBase64.js +15 -9
- package/module/String/fromBase64.js.map +1 -1
- package/module/String/hasNoLetters.d.ts +9 -3
- package/module/String/hasNoLetters.js +12 -6
- package/module/String/hasNoLetters.js.map +1 -1
- package/module/String/padEnd.d.ts +5 -5
- package/module/String/padEnd.js +5 -5
- package/module/String/padStart.d.ts +11 -5
- package/module/String/padStart.js +17 -5
- package/module/String/padStart.js.map +1 -1
- package/module/String/randomString.d.ts +4 -4
- package/module/String/randomString.js +4 -4
- package/module/String/randomStringInitialization.d.ts +3 -3
- package/module/String/randomStringInitialization.js +3 -3
- package/module/String/reverseString.d.ts +3 -3
- package/module/String/reverseString.js +3 -3
- package/module/String/toBase64.d.ts +3 -3
- package/module/String/toBase64.js +3 -3
- package/module/String/toHalfWidth.d.ts +3 -3
- package/module/String/toHalfWidth.js +3 -3
- package/module/String/trimCharacters.d.ts +4 -4
- package/module/String/trimCharacters.js +4 -4
- package/module/String/trimEndCharacters.d.ts +10 -4
- package/module/String/trimEndCharacters.js +10 -4
- package/module/String/trimEndCharacters.js.map +1 -1
- package/module/String/trimStartCharacters.d.ts +10 -4
- package/module/String/trimStartCharacters.js +10 -4
- package/module/String/trimStartCharacters.js.map +1 -1
- package/module/Time/convertTime.d.ts +6 -6
- package/module/Time/convertTime.js +12 -11
- package/module/Time/convertTime.js.map +1 -1
- package/module/Tool/createPipeline.d.ts +8 -6
- package/module/Tool/createPipeline.js +6 -5
- package/module/Tool/createPipeline.js.map +1 -1
- package/module/Tool/parseJson.d.ts +7 -0
- package/module/Tool/parseJson.js +7 -0
- package/module/Tool/parseJson.js.map +1 -1
- package/module/UA/extractBrowserFromUserAgent.d.ts +12 -0
- package/module/UA/extractBrowserFromUserAgent.js +22 -5
- package/module/UA/extractBrowserFromUserAgent.js.map +1 -1
- package/module/UA/extractDeviceFromUserAgent.d.ts +12 -0
- package/module/UA/extractDeviceFromUserAgent.js +12 -0
- package/module/UA/extractDeviceFromUserAgent.js.map +1 -1
- package/module/UA/extractOsFromUserAgent.d.ts +12 -0
- package/module/UA/extractOsFromUserAgent.js +12 -0
- package/module/UA/extractOsFromUserAgent.js.map +1 -1
- package/module/UA/parseUserAgent.d.ts +16 -0
- package/module/UA/parseUserAgent.js +16 -0
- package/module/UA/parseUserAgent.js.map +1 -1
- package/module/Unit/index.d.ts +1 -0
- package/module/Unit/index.js +2 -0
- package/module/Unit/index.js.map +1 -0
- package/module/Unit/unitConverterInitialization.d.ts +16 -0
- package/module/Unit/unitConverterInitialization.js +19 -0
- package/module/Unit/unitConverterInitialization.js.map +1 -0
- package/module/Validate/array/core.d.ts +12 -0
- package/module/Validate/array/core.js +15 -3
- package/module/Validate/array/core.js.map +1 -1
- package/module/Validate/boolean/core.d.ts +9 -0
- package/module/Validate/boolean/core.js +9 -0
- package/module/Validate/boolean/core.js.map +1 -1
- package/module/Validate/core/index.d.ts +10 -0
- package/module/Validate/core/index.js +11 -1
- package/module/Validate/core/index.js.map +1 -1
- package/module/Validate/isArray.d.ts +3 -3
- package/module/Validate/isArray.js +3 -3
- package/module/Validate/isBrowser.d.ts +1 -1
- package/module/Validate/isBrowser.js +1 -1
- package/module/Validate/isBun.d.ts +1 -1
- package/module/Validate/isBun.js +1 -1
- package/module/Validate/isDictionaryObject.d.ts +3 -3
- package/module/Validate/isDictionaryObject.js +3 -3
- package/module/Validate/isDouble.d.ts +4 -4
- package/module/Validate/isDouble.js +4 -4
- package/module/Validate/isNode.d.ts +1 -1
- package/module/Validate/isNode.js +1 -1
- package/module/Validate/isNodeWebkit.d.ts +1 -1
- package/module/Validate/isNodeWebkit.js +1 -1
- package/module/Validate/isNotEmpty.d.ts +3 -3
- package/module/Validate/isNotEmpty.js +4 -4
- package/module/Validate/isNotEmpty.js.map +1 -1
- package/module/Validate/isNumber.d.ts +4 -4
- package/module/Validate/isNumber.js +10 -4
- package/module/Validate/isNumber.js.map +1 -1
- package/module/Validate/isPerfectSquare.d.ts +8 -3
- package/module/Validate/isPerfectSquare.js +8 -3
- package/module/Validate/isPerfectSquare.js.map +1 -1
- package/module/Validate/isPrimeNumber.d.ts +7 -3
- package/module/Validate/isPrimeNumber.js +8 -4
- package/module/Validate/isPrimeNumber.js.map +1 -1
- package/module/Validate/isValueNaN.d.ts +7 -5
- package/module/Validate/isValueNaN.js +7 -5
- package/module/Validate/isValueNaN.js.map +1 -1
- package/module/Validate/number/core.d.ts +11 -0
- package/module/Validate/number/core.js +11 -0
- package/module/Validate/number/core.js.map +1 -1
- package/module/Validate/number/double.d.ts +9 -0
- package/module/Validate/number/double.js +9 -0
- package/module/Validate/number/double.js.map +1 -1
- package/module/Validate/number/even.d.ts +9 -0
- package/module/Validate/number/even.js +9 -0
- package/module/Validate/number/even.js.map +1 -1
- package/module/Validate/number/maxValue.d.ts +10 -0
- package/module/Validate/number/maxValue.js +10 -0
- package/module/Validate/number/maxValue.js.map +1 -1
- package/module/Validate/number/minValue.d.ts +10 -0
- package/module/Validate/number/minValue.js +10 -0
- package/module/Validate/number/minValue.js.map +1 -1
- package/module/Validate/number/prime.d.ts +9 -0
- package/module/Validate/number/prime.js +9 -0
- package/module/Validate/number/prime.js.map +1 -1
- package/module/Validate/object/core.d.ts +11 -0
- package/module/Validate/object/core.js +11 -0
- package/module/Validate/object/core.js.map +1 -1
- package/module/Validate/string/core.d.ts +11 -0
- package/module/Validate/string/core.js +11 -0
- package/module/Validate/string/core.js.map +1 -1
- package/module/Validate/string/email.d.ts +9 -0
- package/module/Validate/string/email.js +10 -1
- package/module/Validate/string/email.js.map +1 -1
- package/module/Validate/string/length.d.ts +11 -0
- package/module/Validate/string/length.js +11 -0
- package/module/Validate/string/length.js.map +1 -1
- package/module/Validate/string/maxLength.d.ts +10 -0
- package/module/Validate/string/maxLength.js +10 -0
- package/module/Validate/string/maxLength.js.map +1 -1
- package/module/Validate/string/minLength.d.ts +10 -0
- package/module/Validate/string/minLength.js +10 -0
- package/module/Validate/string/minLength.js.map +1 -1
- package/module/Validate/string/numberString.d.ts +9 -0
- package/module/Validate/string/numberString.js +9 -0
- package/module/Validate/string/numberString.js.map +1 -1
- package/module/Validate/string/regexMatch.d.ts +10 -0
- package/module/Validate/string/regexMatch.js +10 -0
- package/module/Validate/string/regexMatch.js.map +1 -1
- package/module/Validate/string/uuid.d.ts +8 -3
- package/module/Validate/string/uuid.js +9 -4
- package/module/Validate/string/uuid.js.map +1 -1
- package/module/Validate/type.d.ts +22 -0
- package/module/es5/Advance/rangeAdvance.d.ts +10 -6
- package/module/es5/Advance/rangeAdvance.js +10 -6
- package/module/es5/Array/arraysJoin.d.ts +4 -4
- package/module/es5/Array/arraysJoin.js +4 -4
- package/module/es5/Array/binarySearch.d.ts +4 -3
- package/module/es5/Array/binarySearch.js +4 -3
- package/module/es5/Array/checkFlagAlignment.d.ts +3 -3
- package/module/es5/Array/checkFlagAlignment.js +7 -7
- package/module/es5/Array/chunk.d.ts +4 -4
- package/module/es5/Array/chunk.js +4 -4
- package/module/es5/Array/compact.d.ts +8 -0
- package/module/es5/Array/compact.js +8 -0
- package/module/es5/Array/compareFunctionDefault.d.ts +13 -0
- package/module/es5/Array/compareFunctionDefault.js +13 -0
- package/module/es5/Array/drop.d.ts +5 -5
- package/module/es5/Array/drop.js +5 -5
- package/module/es5/Array/dualPivotQuickSort.d.ts +16 -0
- package/module/es5/Array/dualPivotQuickSort.js +201 -0
- package/module/es5/Array/first.d.ts +3 -3
- package/module/es5/Array/first.js +3 -3
- package/module/es5/Array/generateNumberArray.d.ts +6 -6
- package/module/es5/Array/generateNumberArray.js +6 -6
- package/module/es5/Array/getArraysCommon.d.ts +4 -4
- package/module/es5/Array/getArraysCommon.js +4 -4
- package/module/es5/Array/getArraysDiff.d.ts +4 -4
- package/module/es5/Array/getArraysDiff.js +4 -4
- package/module/es5/Array/groupBy.d.ts +8 -4
- package/module/es5/Array/groupBy.js +8 -4
- package/module/es5/Array/index.d.ts +1 -0
- package/module/es5/Array/index.js +11 -0
- package/module/es5/Array/insertionSort.d.ts +8 -7
- package/module/es5/Array/insertionSort.js +6 -6
- package/module/es5/Array/mergeSort.d.ts +6 -5
- package/module/es5/Array/mergeSort.js +9 -9
- package/module/es5/Array/quickSort.d.ts +12 -11
- package/module/es5/Array/quickSort.js +47 -10
- package/module/es5/Array/randomSelect.d.ts +5 -5
- package/module/es5/Array/randomSelect.js +5 -5
- package/module/es5/Array/range.d.ts +5 -5
- package/module/es5/Array/range.js +28 -10
- package/module/es5/Array/shuffle.d.ts +3 -3
- package/module/es5/Array/shuffle.js +3 -3
- package/module/es5/Array/shuffle2DArray.d.ts +4 -4
- package/module/es5/Array/shuffle2DArray.js +6 -6
- package/module/es5/Array/sum.d.ts +3 -3
- package/module/es5/Array/sum.js +4 -4
- package/module/es5/Array/timSort.d.ts +13 -11
- package/module/es5/Array/timSort.js +36 -9
- package/module/es5/Array/zip.d.ts +6 -3
- package/module/es5/Array/zip.js +6 -3
- package/module/es5/Array/zipLongest.d.ts +8 -5
- package/module/es5/Array/zipLongest.js +8 -5
- package/module/es5/Color/cmykToRgba.d.ts +7 -7
- package/module/es5/Color/cmykToRgba.js +12 -12
- package/module/es5/Color/hexaToRgba.d.ts +4 -3
- package/module/es5/Color/hexaToRgba.js +18 -6
- package/module/es5/Color/hslaToRgba.d.ts +7 -6
- package/module/es5/Color/hslaToRgba.js +19 -13
- package/module/es5/Color/rgbaToCmyk.d.ts +3 -3
- package/module/es5/Color/rgbaToCmyk.js +7 -3
- package/module/es5/Color/rgbaToHexA.d.ts +4 -4
- package/module/es5/Color/rgbaToHexA.js +5 -5
- package/module/es5/Color/rgbaToHsla.d.ts +4 -3
- package/module/es5/Color/rgbaToHsla.js +8 -3
- package/module/es5/Consts/clock.d.ts +11 -11
- package/module/es5/Consts/clock.js +11 -11
- package/module/es5/Consts/httpStatus/httpClientErrorStatus.d.ts +28 -0
- package/module/es5/Consts/httpStatus/httpClientErrorStatus.js +28 -0
- package/module/es5/Consts/httpStatus/httpInformationalStatus.d.ts +9 -0
- package/module/es5/Consts/httpStatus/httpInformationalStatus.js +9 -0
- package/module/es5/Consts/httpStatus/httpRedirectionStatus.d.ts +11 -0
- package/module/es5/Consts/httpStatus/httpRedirectionStatus.js +11 -0
- package/module/es5/Consts/httpStatus/httpServerErrorStatus.d.ts +10 -0
- package/module/es5/Consts/httpStatus/httpServerErrorStatus.js +10 -0
- package/module/es5/Consts/httpStatus/httpSuccessStatus.d.ts +11 -0
- package/module/es5/Consts/httpStatus/httpSuccessStatus.js +11 -0
- package/module/es5/Date/birthday.d.ts +7 -6
- package/module/es5/Date/birthday.js +7 -6
- package/module/es5/Date/dateRange.d.ts +7 -4
- package/module/es5/Date/dateRange.js +7 -4
- package/module/es5/Date/dayOfWeek.d.ts +4 -4
- package/module/es5/Date/dayOfWeek.js +4 -4
- package/module/es5/Date/format.d.ts +30 -4
- package/module/es5/Date/format.js +30 -4
- package/module/es5/Date/getDay.d.ts +8 -5
- package/module/es5/Date/getDay.js +8 -5
- package/module/es5/Date/getTimezoneOffsetString.d.ts +3 -3
- package/module/es5/Date/getTimezoneOffsetString.js +3 -3
- package/module/es5/Date/isLeapYear.d.ts +8 -3
- package/module/es5/Date/isLeapYear.js +8 -3
- package/module/es5/Date/new.d.ts +20 -20
- package/module/es5/Date/new.js +21 -21
- package/module/es5/Date/now.d.ts +7 -4
- package/module/es5/Date/now.js +7 -4
- package/module/es5/Error/safeExecute.d.ts +21 -0
- package/module/es5/Error/safeExecute.js +36 -0
- package/module/es5/IP/cidrToLong.d.ts +4 -3
- package/module/es5/IP/cidrToLong.js +7 -3
- package/module/es5/IP/cidrToSubnetMask.d.ts +4 -3
- package/module/es5/IP/cidrToSubnetMask.js +4 -3
- package/module/es5/IP/getIpClass.d.ts +3 -3
- package/module/es5/IP/getIpClass.js +44 -18
- package/module/es5/IP/getNetworkAddress.d.ts +5 -4
- package/module/es5/IP/getNetworkAddress.js +35 -6
- package/module/es5/IP/ipToBinaryString.d.ts +4 -3
- package/module/es5/IP/ipToBinaryString.js +44 -5
- package/module/es5/IP/ipToLong.d.ts +4 -3
- package/module/es5/IP/ipToLong.js +4 -3
- package/module/es5/IP/isInRange.d.ts +6 -5
- package/module/es5/IP/isInRange.js +34 -7
- package/module/es5/IP/isPrivateIp.d.ts +4 -3
- package/module/es5/IP/isPrivateIp.js +30 -17
- package/module/es5/IP/longToIp.d.ts +4 -3
- package/module/es5/IP/longToIp.js +17 -5
- package/module/es5/IP/subnetMaskToCidr.d.ts +4 -3
- package/module/es5/IP/subnetMaskToCidr.js +33 -12
- package/module/es5/Math/addition.d.ts +3 -3
- package/module/es5/Math/addition.js +3 -3
- package/module/es5/Math/average.d.ts +7 -4
- package/module/es5/Math/average.js +7 -4
- package/module/es5/Math/bitwise.d.ts +5 -5
- package/module/es5/Math/bitwise.js +5 -5
- package/module/es5/Math/calculator/calculator.d.ts +9 -7
- package/module/es5/Math/calculator/calculator.js +9 -7
- package/module/es5/Math/calculator/calculatorInitialization.d.ts +4 -3
- package/module/es5/Math/calculator/calculatorInitialization.js +6 -5
- package/module/es5/Math/calculator/convertCurrency.d.ts +6 -4
- package/module/es5/Math/calculator/convertCurrency.js +6 -4
- package/module/es5/Math/calculator/core.js +13 -13
- package/module/es5/Math/calculator/literalExpression.d.ts +5 -3
- package/module/es5/Math/calculator/literalExpression.js +12 -10
- package/module/es5/Math/degToRad.d.ts +3 -3
- package/module/es5/Math/degToRad.js +3 -3
- package/module/es5/Math/deviationValue.d.ts +5 -5
- package/module/es5/Math/deviationValue.js +5 -5
- package/module/es5/Math/division.d.ts +5 -5
- package/module/es5/Math/division.js +35 -21
- package/module/es5/Math/factorial.d.ts +3 -3
- package/module/es5/Math/factorial.js +3 -3
- package/module/es5/Math/factorize.d.ts +3 -3
- package/module/es5/Math/factorize.js +3 -3
- package/module/es5/Math/flexibleNumberConversion.d.ts +11 -11
- package/module/es5/Math/flexibleNumberConversion.js +19 -19
- package/module/es5/Math/gcd.d.ts +5 -5
- package/module/es5/Math/gcd.js +6 -6
- package/module/es5/Math/getDecimalLength.d.ts +7 -4
- package/module/es5/Math/getDecimalLength.js +9 -5
- package/module/es5/Math/lcm.d.ts +4 -4
- package/module/es5/Math/lcm.js +5 -5
- package/module/es5/Math/linearCongruentialGenerator.d.ts +6 -6
- package/module/es5/Math/linearCongruentialGenerator.js +6 -6
- package/module/es5/Math/mathConverter.d.ts +7 -3
- package/module/es5/Math/mathConverter.js +7 -3
- package/module/es5/Math/mathSeparator.d.ts +8 -3
- package/module/es5/Math/mathSeparator.js +8 -3
- package/module/es5/Math/max.d.ts +4 -3
- package/module/es5/Math/max.js +4 -3
- package/module/es5/Math/median.d.ts +3 -3
- package/module/es5/Math/median.js +3 -3
- package/module/es5/Math/min.d.ts +4 -3
- package/module/es5/Math/min.js +4 -3
- package/module/es5/Math/multiples.d.ts +4 -4
- package/module/es5/Math/multiples.js +4 -4
- package/module/es5/Math/multiplication.d.ts +3 -3
- package/module/es5/Math/multiplication.js +3 -3
- package/module/es5/Math/nCr.d.ts +7 -4
- package/module/es5/Math/nCr.js +7 -4
- package/module/es5/Math/nHr.d.ts +7 -4
- package/module/es5/Math/nHr.js +7 -4
- package/module/es5/Math/nPr.d.ts +7 -4
- package/module/es5/Math/nPr.js +7 -4
- package/module/es5/Math/primeFactorization.d.ts +6 -3
- package/module/es5/Math/primeFactorization.js +11 -8
- package/module/es5/Math/quotient.d.ts +7 -4
- package/module/es5/Math/quotient.js +7 -4
- package/module/es5/Math/radToDeg.d.ts +5 -3
- package/module/es5/Math/radToDeg.js +5 -3
- package/module/es5/Math/random.d.ts +6 -5
- package/module/es5/Math/random.js +6 -5
- package/module/es5/Math/reduce.d.ts +9 -4
- package/module/es5/Math/reduce.js +14 -8
- package/module/es5/Math/repeatedTrial.d.ts +5 -5
- package/module/es5/Math/repeatedTrial.js +5 -5
- package/module/es5/Math/roundOf.d.ts +7 -5
- package/module/es5/Math/roundOf.js +8 -6
- package/module/es5/Math/solveEquation.d.ts +12 -13
- package/module/es5/Math/solveEquation.js +34 -38
- package/module/es5/Math/standardDeviation.d.ts +8 -3
- package/module/es5/Math/standardDeviation.js +16 -7
- package/module/es5/Math/subtract.d.ts +10 -4
- package/module/es5/Math/subtract.js +12 -6
- package/module/es5/Math/toBaseN.d.ts +8 -6
- package/module/es5/Math/toBaseN.js +9 -7
- package/module/es5/Math/toCelsius.d.ts +5 -3
- package/module/es5/Math/toCelsius.js +5 -3
- package/module/es5/Math/toKelvin.d.ts +5 -3
- package/module/es5/Math/toKelvin.js +5 -3
- package/module/es5/Math/uuidv7.d.ts +10 -2
- package/module/es5/Math/uuidv7.js +10 -2
- package/module/es5/Math/valueSwap.d.ts +5 -4
- package/module/es5/Math/valueSwap.js +5 -4
- package/module/es5/Math/xoshiro256.d.ts +8 -3
- package/module/es5/Math/xoshiro256.js +8 -3
- package/module/es5/Object/has.d.ts +4 -4
- package/module/es5/Object/has.js +4 -4
- package/module/es5/Object/keyBy.d.ts +3 -3
- package/module/es5/Object/keyBy.js +4 -4
- package/module/es5/Object/pick.d.ts +6 -6
- package/module/es5/Object/pick.js +6 -6
- package/module/es5/Object/pickDeep.d.ts +7 -7
- package/module/es5/Object/pickDeep.js +7 -7
- package/module/es5/Simple/Array/quickSortSimple.d.ts +9 -7
- package/module/es5/Simple/Array/quickSortSimple.js +7 -6
- package/module/es5/Simple/Date/birthdaySimple.d.ts +4 -4
- package/module/es5/Simple/Date/birthdaySimple.js +4 -4
- package/module/es5/Simple/Date/dayOfWeekSimple.d.ts +4 -4
- package/module/es5/Simple/Date/dayOfWeekSimple.js +4 -4
- package/module/es5/Simple/Date/nowSimple.d.ts +3 -3
- package/module/es5/Simple/Date/nowSimple.js +3 -3
- package/module/es5/Simple/Math/deviationValueSimple.d.ts +10 -11
- package/module/es5/Simple/Math/deviationValueSimple.js +23 -12
- package/module/es5/String/deleteSpaces.d.ts +8 -4
- package/module/es5/String/deleteSpaces.js +8 -4
- package/module/es5/String/formatString.d.ts +8 -8
- package/module/es5/String/formatString.js +7 -7
- package/module/es5/String/fromBase64.d.ts +4 -3
- package/module/es5/String/fromBase64.js +14 -9
- package/module/es5/String/hasNoLetters.d.ts +9 -3
- package/module/es5/String/hasNoLetters.js +12 -6
- package/module/es5/String/padEnd.d.ts +5 -5
- package/module/es5/String/padEnd.js +5 -5
- package/module/es5/String/padStart.d.ts +11 -5
- package/module/es5/String/padStart.js +20 -5
- package/module/es5/String/randomString.d.ts +4 -4
- package/module/es5/String/randomString.js +4 -4
- package/module/es5/String/randomStringInitialization.d.ts +3 -3
- package/module/es5/String/randomStringInitialization.js +3 -3
- package/module/es5/String/reverseString.d.ts +3 -3
- package/module/es5/String/reverseString.js +3 -3
- package/module/es5/String/toBase64.d.ts +3 -3
- package/module/es5/String/toBase64.js +3 -3
- package/module/es5/String/toHalfWidth.d.ts +3 -3
- package/module/es5/String/toHalfWidth.js +3 -3
- package/module/es5/String/trimCharacters.d.ts +4 -4
- package/module/es5/String/trimCharacters.js +4 -4
- package/module/es5/String/trimEndCharacters.d.ts +10 -4
- package/module/es5/String/trimEndCharacters.js +10 -4
- package/module/es5/String/trimStartCharacters.d.ts +10 -4
- package/module/es5/String/trimStartCharacters.js +10 -4
- package/module/es5/Time/convertTime.d.ts +6 -6
- package/module/es5/Time/convertTime.js +12 -11
- package/module/es5/Tool/createPipeline.d.ts +8 -6
- package/module/es5/Tool/createPipeline.js +10 -8
- package/module/es5/Tool/parseJson.d.ts +7 -0
- package/module/es5/Tool/parseJson.js +7 -0
- package/module/es5/UA/extractBrowserFromUserAgent.d.ts +12 -0
- package/module/es5/UA/extractBrowserFromUserAgent.js +22 -5
- package/module/es5/UA/extractDeviceFromUserAgent.d.ts +12 -0
- package/module/es5/UA/extractDeviceFromUserAgent.js +12 -0
- package/module/es5/UA/extractOsFromUserAgent.d.ts +12 -0
- package/module/es5/UA/extractOsFromUserAgent.js +12 -0
- package/module/es5/UA/parseUserAgent.d.ts +16 -0
- package/module/es5/UA/parseUserAgent.js +16 -0
- package/module/es5/Unit/index.d.ts +1 -0
- package/module/es5/Unit/index.js +16 -0
- package/module/es5/Unit/unitConverterInitialization.d.ts +16 -0
- package/module/es5/Unit/unitConverterInitialization.js +28 -0
- package/module/es5/Validate/array/core.d.ts +12 -0
- package/module/es5/Validate/array/core.js +15 -4
- package/module/es5/Validate/boolean/core.d.ts +9 -0
- package/module/es5/Validate/boolean/core.js +10 -0
- package/module/es5/Validate/core/index.d.ts +10 -0
- package/module/es5/Validate/core/index.js +13 -1
- package/module/es5/Validate/isArray.d.ts +3 -3
- package/module/es5/Validate/isArray.js +3 -3
- package/module/es5/Validate/isBrowser.d.ts +1 -1
- package/module/es5/Validate/isBrowser.js +1 -1
- package/module/es5/Validate/isBun.d.ts +1 -1
- package/module/es5/Validate/isBun.js +1 -1
- package/module/es5/Validate/isDictionaryObject.d.ts +3 -3
- package/module/es5/Validate/isDictionaryObject.js +3 -3
- package/module/es5/Validate/isDouble.d.ts +4 -4
- package/module/es5/Validate/isDouble.js +4 -4
- package/module/es5/Validate/isNode.d.ts +1 -1
- package/module/es5/Validate/isNode.js +1 -1
- package/module/es5/Validate/isNodeWebkit.d.ts +1 -1
- package/module/es5/Validate/isNodeWebkit.js +1 -1
- package/module/es5/Validate/isNotEmpty.d.ts +3 -3
- package/module/es5/Validate/isNotEmpty.js +4 -4
- package/module/es5/Validate/isNumber.d.ts +4 -4
- package/module/es5/Validate/isNumber.js +11 -4
- package/module/es5/Validate/isPerfectSquare.d.ts +8 -3
- package/module/es5/Validate/isPerfectSquare.js +8 -3
- package/module/es5/Validate/isPrimeNumber.d.ts +7 -3
- package/module/es5/Validate/isPrimeNumber.js +8 -4
- package/module/es5/Validate/isValueNaN.d.ts +7 -5
- package/module/es5/Validate/isValueNaN.js +7 -5
- package/module/es5/Validate/number/core.d.ts +11 -0
- package/module/es5/Validate/number/core.js +12 -0
- package/module/es5/Validate/number/double.d.ts +9 -0
- package/module/es5/Validate/number/double.js +10 -0
- package/module/es5/Validate/number/even.d.ts +9 -0
- package/module/es5/Validate/number/even.js +10 -0
- package/module/es5/Validate/number/maxValue.d.ts +10 -0
- package/module/es5/Validate/number/maxValue.js +11 -0
- package/module/es5/Validate/number/minValue.d.ts +10 -0
- package/module/es5/Validate/number/minValue.js +11 -0
- package/module/es5/Validate/number/prime.d.ts +9 -0
- package/module/es5/Validate/number/prime.js +10 -0
- package/module/es5/Validate/object/core.d.ts +11 -0
- package/module/es5/Validate/object/core.js +12 -0
- package/module/es5/Validate/string/core.d.ts +11 -0
- package/module/es5/Validate/string/core.js +12 -0
- package/module/es5/Validate/string/email.d.ts +9 -0
- package/module/es5/Validate/string/email.js +11 -1
- package/module/es5/Validate/string/length.d.ts +11 -0
- package/module/es5/Validate/string/length.js +12 -0
- package/module/es5/Validate/string/maxLength.d.ts +10 -0
- package/module/es5/Validate/string/maxLength.js +11 -0
- package/module/es5/Validate/string/minLength.d.ts +10 -0
- package/module/es5/Validate/string/minLength.js +11 -0
- package/module/es5/Validate/string/numberString.d.ts +9 -0
- package/module/es5/Validate/string/numberString.js +10 -0
- package/module/es5/Validate/string/regexMatch.d.ts +10 -0
- package/module/es5/Validate/string/regexMatch.js +11 -0
- package/module/es5/Validate/string/uuid.d.ts +8 -3
- package/module/es5/Validate/string/uuid.js +10 -4
- package/module/es5/Validate/type.d.ts +22 -0
- package/module/es5/index.d.ts +1 -0
- package/module/es5/index.js +11 -0
- package/module/es5/tests/integration/Array/drop-and-first.test.js +20 -0
- package/module/es5/tests/integration/Tool/parseJson-and-Validate.test.js +68 -14
- package/module/es5/tests/unit/Array/arraysJoin.test.js +15 -3
- package/module/es5/tests/unit/Array/checkFlagAlignment.test.js +10 -10
- package/module/es5/tests/unit/Array/compact.test.js +17 -17
- package/module/es5/tests/unit/Array/compareFunctionDefault.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/compareFunctionDefault.test.js +29 -0
- package/module/es5/tests/unit/Array/drop.test.js +10 -10
- package/module/es5/tests/unit/Array/dualPivotQuickSort.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/dualPivotQuickSort.test.js +87 -0
- package/module/es5/tests/unit/Array/generateNumberArray.test.js +6 -6
- package/module/es5/tests/unit/Array/getArraysCommon.test.js +36 -4
- package/module/es5/tests/unit/Array/getArraysDiff.test.js +14 -14
- package/module/es5/tests/unit/Array/groupBy.test.js +6 -6
- package/module/es5/tests/unit/Array/insertionSort.test.js +8 -8
- package/module/es5/tests/unit/Array/mergeSort.test.js +34 -5
- package/module/es5/tests/unit/Array/quickSort.test.js +76 -11
- package/module/es5/tests/unit/Array/randomSelect.test.js +11 -6
- package/module/es5/tests/unit/Array/range.test.js +25 -4
- package/module/es5/tests/unit/Array/shuffle.test.js +53 -6
- package/module/es5/tests/unit/Array/shuffle2DArray.test.js +51 -8
- package/module/es5/tests/unit/Array/sum.test.js +40 -2
- package/module/es5/tests/unit/Array/timSort.test.js +89 -9
- package/module/es5/tests/unit/Array/zip.test.js +48 -9
- package/module/es5/tests/unit/Array/zipLongest.test.js +52 -9
- package/module/es5/tests/unit/Color/cmykToRgba.test.js +3 -3
- package/module/es5/tests/unit/Color/hexaToRgba.test.js +53 -1
- package/module/es5/tests/unit/Color/hslaToRgba.test.js +35 -53
- package/module/es5/tests/unit/Color/rgbaToCmyk.test.js +67 -1
- package/module/es5/tests/unit/Color/rgbaToHsla.test.js +91 -1
- package/module/es5/tests/unit/Consts/clock.test.js +51 -18
- package/module/es5/tests/unit/Consts/httpStatus.test.js +9 -0
- package/module/es5/tests/unit/Date/birthday.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/birthday.test.js +31 -0
- package/module/es5/tests/unit/Date/dateRange.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/dateRange.test.js +40 -0
- package/module/es5/tests/unit/Date/dayOfWeek.test.js +5 -5
- package/module/es5/tests/unit/Date/format.test.js +22 -0
- package/module/es5/tests/unit/Date/getDay.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/getDay.test.js +40 -0
- package/module/es5/tests/unit/Date/getTimezoneOffsetString.test.js +3 -3
- package/module/es5/tests/unit/Date/isLeapYear.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/isLeapYear.test.js +30 -0
- package/module/es5/tests/unit/Date/new.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/new.test.js +39 -0
- package/module/es5/tests/unit/Date/now.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/now.test.js +42 -0
- package/module/es5/tests/unit/Error/safeExecute.test.js +69 -15
- package/module/es5/tests/unit/IP/cidrToLong.test.js +27 -5
- package/module/es5/tests/unit/IP/cidrToSubnetMask.test.js +29 -10
- package/module/es5/tests/unit/IP/getIpClass.test.js +29 -18
- package/module/es5/tests/unit/IP/getNetworkAddress.test.js +35 -14
- package/module/es5/tests/unit/IP/ipToBinaryString.test.js +38 -9
- package/module/es5/tests/unit/IP/ipToLong.test.js +27 -13
- package/module/es5/tests/unit/IP/isInRange.test.js +75 -4
- package/module/es5/tests/unit/IP/isPrivateIp.test.js +18 -12
- package/module/es5/tests/unit/IP/longToIp.test.d.ts +1 -0
- package/module/es5/tests/unit/IP/longToIp.test.js +39 -0
- package/module/es5/tests/unit/IP/subnetMaskToCidr.test.js +34 -20
- package/module/es5/tests/unit/Math/average.test.js +40 -18
- package/module/es5/tests/unit/Math/bitwise.test.js +14 -14
- package/module/es5/tests/unit/Math/calculator/calculator.test.js +9 -9
- package/module/es5/tests/unit/Math/calculator/calculatorInitialization.test.js +16 -5
- package/module/es5/tests/unit/Math/calculator/convertCurrency.test.js +12 -12
- package/module/es5/tests/unit/Math/calculator/literalExpression.test.js +8 -8
- package/module/es5/tests/unit/Math/degToRad.test.js +10 -10
- package/module/es5/tests/unit/Math/deviationValue.test.js +12 -12
- package/module/es5/tests/unit/Math/division.test.js +72 -25
- package/module/es5/tests/unit/Math/factorial.test.js +4 -4
- package/module/es5/tests/unit/Math/factorize.test.js +34 -9
- package/module/es5/tests/unit/Math/flexibleNumberConversion.test.js +75 -75
- package/module/es5/tests/unit/Math/gcd.test.js +5 -5
- package/module/es5/tests/unit/Math/getDecimalLength.test.js +40 -4
- package/module/es5/tests/unit/Math/lcm.test.js +16 -9
- package/module/es5/tests/unit/Math/linearCongruentialGenerator.test.js +4 -4
- package/module/es5/tests/unit/Math/mathConverter.test.js +13 -13
- package/module/es5/tests/unit/Math/mathSeparator.test.js +23 -5
- package/module/es5/tests/unit/Math/max.test.js +18 -3
- package/module/es5/tests/unit/Math/median.test.js +4 -4
- package/module/es5/tests/unit/Math/min.test.js +18 -3
- package/module/es5/tests/unit/Math/multiples.test.js +26 -10
- package/module/es5/tests/unit/Math/multiplication.test.js +43 -9
- package/module/es5/tests/unit/Math/nCr.test.js +27 -14
- package/module/es5/tests/unit/Math/nHr.test.js +28 -15
- package/module/es5/tests/unit/Math/nPr.test.js +31 -14
- package/module/es5/tests/unit/Math/primeFactorization.test.js +79 -8
- package/module/es5/tests/unit/Math/quotient.test.js +32 -10
- package/module/es5/tests/unit/Math/radToDeg.test.js +39 -38
- package/module/es5/tests/unit/Math/random.test.js +55 -17
- package/module/es5/tests/unit/Math/reduce.test.js +87 -8
- package/module/es5/tests/unit/Math/repeatedTrial.test.js +35 -5
- package/module/es5/tests/unit/Math/roundOf.test.js +36 -11
- package/module/es5/tests/unit/Math/solveEquation.test.js +20 -20
- package/module/es5/tests/unit/Math/standardDeviation.test.js +19 -2
- package/module/es5/tests/unit/Math/subtract.test.js +14 -2
- package/module/es5/tests/unit/Math/toBaseN.test.js +36 -19
- package/module/es5/tests/unit/Math/toCelsius.test.js +14 -2
- package/module/es5/tests/unit/Math/toKelvin.test.js +14 -2
- package/module/es5/tests/unit/Math/uuidv7.test.js +6 -6
- package/module/es5/tests/unit/Math/valueSwap.test.js +24 -6
- package/module/es5/tests/unit/Math/xoshiro256.test.js +22 -11
- package/module/es5/tests/unit/Object/keyBy.test.js +6 -6
- package/module/es5/tests/unit/Object/pick.test.js +11 -11
- package/module/es5/tests/unit/Object/pickDeep.test.js +15 -15
- package/module/es5/tests/unit/Simple/Array/quickSortSimple.test.js +4 -4
- package/module/es5/tests/unit/Simple/Math/deviationValueSimple.test.js +39 -3
- package/module/es5/tests/unit/String/deleteSpaces.test.d.ts +1 -0
- package/module/es5/tests/unit/String/deleteSpaces.test.js +22 -0
- package/module/es5/tests/unit/String/formatString.test.js +41 -14
- package/module/es5/tests/unit/String/fromBase64.test.js +19 -8
- package/module/es5/tests/unit/String/hasNoLetters.test.js +20 -24
- package/module/es5/tests/unit/String/padEnd.test.js +5 -5
- package/module/es5/tests/unit/String/padStart.test.js +32 -19
- package/module/es5/tests/unit/String/randomString.test.js +3 -3
- package/module/es5/tests/unit/String/randomStringInitialization.test.js +2 -2
- package/module/es5/tests/unit/String/reverseString.test.js +10 -12
- package/module/es5/tests/unit/String/toBase64.test.js +5 -5
- package/module/es5/tests/unit/String/toHalfWidth.test.js +3 -3
- package/module/es5/tests/unit/String/trimCharacters.test.js +4 -4
- package/module/es5/tests/unit/String/trimEndCharacters.test.js +17 -7
- package/module/es5/tests/unit/String/trimStartCharacters.test.js +23 -10
- package/module/es5/tests/unit/Time/convertTime.test.js +40 -46
- package/module/es5/tests/unit/Tool/createPipeline.test.js +15 -15
- package/module/es5/tests/unit/UA/extractBrowserFromUserAgent.test.d.ts +1 -0
- package/module/es5/tests/unit/UA/extractBrowserFromUserAgent.test.js +47 -0
- package/module/es5/tests/unit/UA/extractDeviceFromUserAgent.test.d.ts +1 -0
- package/module/es5/tests/unit/UA/extractDeviceFromUserAgent.test.js +55 -0
- package/module/es5/tests/unit/UA/extractOsFromUserAgent.test.d.ts +1 -0
- package/module/es5/tests/unit/UA/extractOsFromUserAgent.test.js +57 -0
- package/module/es5/tests/unit/Unit/unitConverterInitialization.test.d.ts +1 -0
- package/module/es5/tests/unit/Unit/unitConverterInitialization.test.js +40 -0
- package/module/es5/tests/unit/Validate/array/core.test.js +39 -10
- package/module/es5/tests/unit/Validate/core/core.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/core/core.test.js +87 -0
- package/module/es5/tests/unit/Validate/isArray.test.js +11 -0
- package/module/es5/tests/unit/Validate/isDictionaryObject.test.js +15 -1
- package/module/es5/tests/unit/Validate/isDouble.test.js +21 -4
- package/module/es5/tests/unit/Validate/isNotEmpty.test.js +3 -3
- package/module/es5/tests/unit/Validate/isNumber.test.js +67 -29
- package/module/es5/tests/unit/Validate/isPerfectSquare.test.js +5 -0
- package/module/es5/tests/unit/Validate/isPrimeNumber.test.js +14 -4
- package/module/es5/tests/unit/Validate/isValueNaN.test.js +50 -11
- package/module/es5/tests/unit/Validate/string/uuid.test.js +13 -13
- package/module/es5/tsconfig.tsbuildinfo +1 -1
- package/module/es5/types/array/compareFunction.d.ts +2 -0
- package/module/es5/types/array/compareFunction.js +5 -0
- package/module/es5/types/time/timeUnit.d.ts +1 -1
- package/module/index.d.ts +1 -0
- package/module/index.js +1 -0
- package/module/index.js.map +1 -1
- package/module/types/array/compareFunction.d.ts +2 -0
- package/module/types/array/compareFunction.js +2 -0
- package/module/types/array/compareFunction.js.map +1 -0
- package/module/types/time/timeUnit.d.ts +1 -1
- package/package.json +14 -14
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param {number[][]} coefficients
|
|
4
|
-
* @param {number[]} constants
|
|
5
|
-
* @returns {number[]}
|
|
2
|
+
* Solves a system of linear equations using Gaussian elimination
|
|
3
|
+
* @param {number[][]} coefficients Matrix of coefficients
|
|
4
|
+
* @param {number[]} constants Vector of constants
|
|
5
|
+
* @returns {number[]} Solution vector
|
|
6
6
|
* @example
|
|
7
|
+
* // Solves the system:
|
|
7
8
|
* // x + y = 4
|
|
8
9
|
* // x + 2y = 10
|
|
9
|
-
* solveEquation(
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* },
|
|
17
|
-
* ); // [-2, 6]
|
|
10
|
+
* solveEquation([
|
|
11
|
+
* [1, 1],
|
|
12
|
+
* [1, 2]
|
|
13
|
+
* ], [4, 10]); // returns [-2, 6]
|
|
14
|
+
* @description
|
|
15
|
+
* Uses Gaussian elimination with partial pivoting to solve a system of linear equations.
|
|
16
|
+
* The solution is rounded to 1 decimal place.
|
|
18
17
|
*/
|
|
19
18
|
export declare const solveEquation: (coefficients: number[][], constants: number[]) => number[];
|
|
@@ -10,71 +10,67 @@ var _multiplication = require("./multiplication");
|
|
|
10
10
|
var _roundOf = require("./roundOf");
|
|
11
11
|
var _subtract = require("./subtract");
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
14
|
-
* @param {number[][]} coefficients
|
|
15
|
-
* @param {number[]} constants
|
|
16
|
-
* @returns {number[]}
|
|
13
|
+
* Solves a system of linear equations using Gaussian elimination
|
|
14
|
+
* @param {number[][]} coefficients Matrix of coefficients
|
|
15
|
+
* @param {number[]} constants Vector of constants
|
|
16
|
+
* @returns {number[]} Solution vector
|
|
17
17
|
* @example
|
|
18
|
+
* // Solves the system:
|
|
18
19
|
* // x + y = 4
|
|
19
20
|
* // x + 2y = 10
|
|
20
|
-
* solveEquation(
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* },
|
|
28
|
-
* ); // [-2, 6]
|
|
21
|
+
* solveEquation([
|
|
22
|
+
* [1, 1],
|
|
23
|
+
* [1, 2]
|
|
24
|
+
* ], [4, 10]); // returns [-2, 6]
|
|
25
|
+
* @description
|
|
26
|
+
* Uses Gaussian elimination with partial pivoting to solve a system of linear equations.
|
|
27
|
+
* The solution is rounded to 1 decimal place.
|
|
29
28
|
*/
|
|
30
29
|
var solveEquation = exports.solveEquation = function solveEquation(coefficients, constants) {
|
|
31
30
|
var n = constants.length;
|
|
32
31
|
for (var index = 0; index < n; index++) {
|
|
33
|
-
// Find the max element in the column
|
|
32
|
+
// Find the max element in the column (partial pivoting)
|
|
34
33
|
var maxElement = Math.abs(coefficients[index][index]);
|
|
35
34
|
var maxRow = index;
|
|
36
|
-
for (var
|
|
37
|
-
if (Math.abs(coefficients[
|
|
38
|
-
maxElement = Math.abs(coefficients[
|
|
39
|
-
maxRow =
|
|
35
|
+
for (var row = index + 1; row < n; row++) {
|
|
36
|
+
if (Math.abs(coefficients[row][index]) > maxElement) {
|
|
37
|
+
maxElement = Math.abs(coefficients[row][index]);
|
|
38
|
+
maxRow = row;
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
// Swap the row with the max element to the top of the matrix
|
|
44
|
-
for (var
|
|
45
|
-
var
|
|
46
|
-
coefficients[maxRow][
|
|
47
|
-
coefficients[index][
|
|
43
|
+
for (var col = index; col < n; col++) {
|
|
44
|
+
var _temporary = coefficients[maxRow][col];
|
|
45
|
+
coefficients[maxRow][col] = coefficients[index][col];
|
|
46
|
+
coefficients[index][col] = _temporary;
|
|
48
47
|
}
|
|
49
48
|
var temporary = constants[maxRow];
|
|
50
49
|
constants[maxRow] = constants[index];
|
|
51
50
|
constants[index] = temporary;
|
|
52
51
|
|
|
53
52
|
// Perform elimination on the rows below
|
|
54
|
-
for (var
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
for (var k = index; k < n; k++) {
|
|
60
|
-
// coefficients[j][k] -= factor * coefficients[i][k];
|
|
61
|
-
coefficients[_index_2][k] = (0, _subtract.subtract)(coefficients[_index_2][k], (0, _multiplication.multiplication)(factor, coefficients[index][k]));
|
|
53
|
+
for (var _row = index + 1; _row < n; _row++) {
|
|
54
|
+
var factor = (0, _division.division)(coefficients[_row][index], coefficients[index][index]);
|
|
55
|
+
constants[_row] = (0, _subtract.subtract)(constants[_row], (0, _multiplication.multiplication)(factor, constants[index]));
|
|
56
|
+
for (var _col = index; _col < n; _col++) {
|
|
57
|
+
coefficients[_row][_col] = (0, _subtract.subtract)(coefficients[_row][_col], (0, _multiplication.multiplication)(factor, coefficients[index][_col]));
|
|
62
58
|
}
|
|
63
59
|
}
|
|
64
60
|
}
|
|
65
61
|
var solution = [];
|
|
66
62
|
|
|
67
63
|
// Back substitute to find the solution
|
|
68
|
-
for (var
|
|
64
|
+
for (var _row2 = n - 1; _row2 >= 0; _row2--) {
|
|
69
65
|
var sum = 0;
|
|
70
|
-
for (var
|
|
71
|
-
|
|
72
|
-
sum = (0, _addition.addition)(sum, (0, _multiplication.multiplication)(coefficients[_index][_index_3], solution[(0, _subtract.subtract)((0, _subtract.subtract)(n, _index_3), 1)]));
|
|
66
|
+
for (var _col2 = _row2 + 1; _col2 < n; _col2++) {
|
|
67
|
+
sum = (0, _addition.addition)(sum, (0, _multiplication.multiplication)(coefficients[_row2][_col2], solution[n - _col2 - 1]));
|
|
73
68
|
}
|
|
74
|
-
|
|
75
|
-
solution.push((0, _division.division)((0, _subtract.subtract)(constants[_index], sum), coefficients[_index][_index]));
|
|
69
|
+
solution.push((0, _division.division)((0, _subtract.subtract)(constants[_row2], sum), coefficients[_row2][_row2]));
|
|
76
70
|
}
|
|
77
|
-
|
|
78
|
-
|
|
71
|
+
|
|
72
|
+
// Return the solution vector with values rounded to 1 decimal place
|
|
73
|
+
return solution.reverse().map(function (value) {
|
|
74
|
+
return (0, _roundOf.roundOf)(value, 1);
|
|
79
75
|
});
|
|
80
76
|
};
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param
|
|
4
|
-
* @returns number
|
|
2
|
+
* Calculates the standard deviation of a set of values
|
|
3
|
+
* @param {number[]} values Array of numeric values
|
|
4
|
+
* @returns {number} The standard deviation
|
|
5
5
|
* @example standardDeviation([1, 2, 3]); // 0.816496580927726
|
|
6
|
+
* @example standardDeviation([10, 12, 23, 23, 16, 23, 21, 16]); // 4.898979485566356
|
|
7
|
+
* @description
|
|
8
|
+
* The standard deviation is a measure of the amount of variation or dispersion of a set of values.
|
|
9
|
+
* A low standard deviation indicates that the values tend to be close to the mean,
|
|
10
|
+
* while a high standard deviation indicates that the values are spread out over a wider range.
|
|
6
11
|
*/
|
|
7
12
|
export declare const standardDeviation: (values: number[]) => number;
|
|
@@ -6,19 +6,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.standardDeviation = void 0;
|
|
7
7
|
var _average = require("./average");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @param
|
|
11
|
-
* @returns number
|
|
9
|
+
* Calculates the standard deviation of a set of values
|
|
10
|
+
* @param {number[]} values Array of numeric values
|
|
11
|
+
* @returns {number} The standard deviation
|
|
12
12
|
* @example standardDeviation([1, 2, 3]); // 0.816496580927726
|
|
13
|
+
* @example standardDeviation([10, 12, 23, 23, 16, 23, 21, 16]); // 4.898979485566356
|
|
14
|
+
* @description
|
|
15
|
+
* The standard deviation is a measure of the amount of variation or dispersion of a set of values.
|
|
16
|
+
* A low standard deviation indicates that the values tend to be close to the mean,
|
|
17
|
+
* while a high standard deviation indicates that the values are spread out over a wider range.
|
|
13
18
|
*/
|
|
14
19
|
var standardDeviation = exports.standardDeviation = function standardDeviation(values) {
|
|
15
20
|
var avg = (0, _average.average)(values);
|
|
21
|
+
|
|
22
|
+
// Calculate the squared differences from the mean
|
|
16
23
|
var squareDiffs = values.map(function (value) {
|
|
17
24
|
var diff = value - avg;
|
|
18
|
-
|
|
19
|
-
return sqrDiff;
|
|
25
|
+
return diff * diff;
|
|
20
26
|
});
|
|
27
|
+
|
|
28
|
+
// Calculate the mean of the squared differences
|
|
21
29
|
var avgSquareDiff = (0, _average.average)(squareDiffs);
|
|
22
|
-
|
|
23
|
-
|
|
30
|
+
|
|
31
|
+
// Return the square root of the mean squared differences
|
|
32
|
+
return Math.sqrt(avgSquareDiff);
|
|
24
33
|
};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param {number[]} numbers
|
|
4
|
-
* @returns number
|
|
5
|
-
* @example subtract(
|
|
2
|
+
* Performs subtraction with arbitrary number of arguments without floating point errors
|
|
3
|
+
* @param {number[]} numbers Array of numbers to subtract
|
|
4
|
+
* @returns {number} The result of the subtraction
|
|
5
|
+
* @example subtract(0.1, 0.2); // -0.1
|
|
6
|
+
* @example subtract(1, 0.1, 0.2); // 0.7
|
|
7
|
+
* @description
|
|
8
|
+
* This function handles floating point precision issues by scaling the numbers
|
|
9
|
+
* to integers before performing subtraction, then scaling back to the original
|
|
10
|
+
* decimal places. The first argument is the minuend, and all subsequent arguments
|
|
11
|
+
* are subtracted from it.
|
|
6
12
|
*/
|
|
7
13
|
export declare const subtract: (...numbers: number[]) => number;
|
|
@@ -8,10 +8,16 @@ var _getDecimalLength = require("./getDecimalLength");
|
|
|
8
8
|
var _max = require("./max");
|
|
9
9
|
var _multiplication = require("./multiplication");
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @param {number[]} numbers
|
|
13
|
-
* @returns number
|
|
14
|
-
* @example subtract(
|
|
11
|
+
* Performs subtraction with arbitrary number of arguments without floating point errors
|
|
12
|
+
* @param {number[]} numbers Array of numbers to subtract
|
|
13
|
+
* @returns {number} The result of the subtraction
|
|
14
|
+
* @example subtract(0.1, 0.2); // -0.1
|
|
15
|
+
* @example subtract(1, 0.1, 0.2); // 0.7
|
|
16
|
+
* @description
|
|
17
|
+
* This function handles floating point precision issues by scaling the numbers
|
|
18
|
+
* to integers before performing subtraction, then scaling back to the original
|
|
19
|
+
* decimal places. The first argument is the minuend, and all subsequent arguments
|
|
20
|
+
* are subtracted from it.
|
|
15
21
|
*/
|
|
16
22
|
|
|
17
23
|
var subtract = exports.subtract = function subtract() {
|
|
@@ -22,9 +28,9 @@ var subtract = exports.subtract = function subtract() {
|
|
|
22
28
|
if (index === 0) {
|
|
23
29
|
return current;
|
|
24
30
|
}
|
|
25
|
-
// 10
|
|
31
|
+
// Get the power of 10 based on the maximum decimal places
|
|
26
32
|
var z = Math.pow(10, (0, _max.max)((0, _getDecimalLength.getDecimalLength)(accumulator), (0, _getDecimalLength.getDecimalLength)(current)));
|
|
27
|
-
//
|
|
33
|
+
// Scale to integers, subtract, then scale back to original decimal places
|
|
28
34
|
return ((0, _multiplication.multiplication)(accumulator, z) - (0, _multiplication.multiplication)(current, z)) / z;
|
|
29
35
|
}, 0);
|
|
30
36
|
};
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param {number}
|
|
4
|
-
* @param
|
|
5
|
-
* @returns string
|
|
6
|
-
* @example toBaseN(10); // "1010"
|
|
2
|
+
* Converts a number to a string representation in the specified base
|
|
3
|
+
* @param {number} value The number to convert
|
|
4
|
+
* @param {number} [radix=2] The base to convert to (2-36)
|
|
5
|
+
* @returns {string} String representation of the number in the specified base
|
|
6
|
+
* @example toBaseN(10); // "1010" (binary)
|
|
7
|
+
* @example toBaseN(15, 16); // "f" (hexadecimal)
|
|
8
|
+
* @example toBaseN(255, 16); // "ff" (hexadecimal)
|
|
7
9
|
*/
|
|
8
|
-
export declare const toBaseN: (
|
|
10
|
+
export declare const toBaseN: (value: number, radix?: number) => string;
|
|
@@ -5,13 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.toBaseN = void 0;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
9
|
-
* @param {number}
|
|
10
|
-
* @param
|
|
11
|
-
* @returns string
|
|
12
|
-
* @example toBaseN(10); // "1010"
|
|
8
|
+
* Converts a number to a string representation in the specified base
|
|
9
|
+
* @param {number} value The number to convert
|
|
10
|
+
* @param {number} [radix=2] The base to convert to (2-36)
|
|
11
|
+
* @returns {string} String representation of the number in the specified base
|
|
12
|
+
* @example toBaseN(10); // "1010" (binary)
|
|
13
|
+
* @example toBaseN(15, 16); // "f" (hexadecimal)
|
|
14
|
+
* @example toBaseN(255, 16); // "ff" (hexadecimal)
|
|
13
15
|
*/
|
|
14
|
-
var toBaseN = exports.toBaseN = function toBaseN(
|
|
16
|
+
var toBaseN = exports.toBaseN = function toBaseN(value) {
|
|
15
17
|
var radix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
16
|
-
return
|
|
18
|
+
return value.toString(radix);
|
|
17
19
|
};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param kelvin
|
|
4
|
-
* @returns number
|
|
2
|
+
* Converts temperature from Kelvin to Celsius
|
|
3
|
+
* @param {number} kelvin Temperature in Kelvin
|
|
4
|
+
* @returns {number} Temperature in Celsius
|
|
5
5
|
* @example toCelsius(300); // 26.85
|
|
6
|
+
* @example toCelsius(273.15); // 0
|
|
7
|
+
* @example toCelsius(0); // -273.15 (absolute zero)
|
|
6
8
|
*/
|
|
7
9
|
export declare const toCelsius: (kelvin: number) => number;
|
|
@@ -6,10 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.toCelsius = void 0;
|
|
7
7
|
var _subtract = require("./subtract");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @param kelvin
|
|
11
|
-
* @returns number
|
|
9
|
+
* Converts temperature from Kelvin to Celsius
|
|
10
|
+
* @param {number} kelvin Temperature in Kelvin
|
|
11
|
+
* @returns {number} Temperature in Celsius
|
|
12
12
|
* @example toCelsius(300); // 26.85
|
|
13
|
+
* @example toCelsius(273.15); // 0
|
|
14
|
+
* @example toCelsius(0); // -273.15 (absolute zero)
|
|
13
15
|
*/
|
|
14
16
|
var toCelsius = exports.toCelsius = function toCelsius(kelvin) {
|
|
15
17
|
return (0, _subtract.subtract)(kelvin, 273.15);
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param celsius
|
|
4
|
-
* @returns number
|
|
2
|
+
* Converts temperature from Celsius to Kelvin
|
|
3
|
+
* @param {number} celsius Temperature in Celsius
|
|
4
|
+
* @returns {number} Temperature in Kelvin
|
|
5
5
|
* @example toKelvin(26.85); // 300
|
|
6
|
+
* @example toKelvin(0); // 273.15
|
|
7
|
+
* @example toKelvin(-273.15); // 0 (absolute zero)
|
|
6
8
|
*/
|
|
7
9
|
export declare const toKelvin: (celsius: number) => number;
|
|
@@ -6,10 +6,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.toKelvin = void 0;
|
|
7
7
|
var _addition = require("./addition");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
* @param celsius
|
|
11
|
-
* @returns number
|
|
9
|
+
* Converts temperature from Celsius to Kelvin
|
|
10
|
+
* @param {number} celsius Temperature in Celsius
|
|
11
|
+
* @returns {number} Temperature in Kelvin
|
|
12
12
|
* @example toKelvin(26.85); // 300
|
|
13
|
+
* @example toKelvin(0); // 273.15
|
|
14
|
+
* @example toKelvin(-273.15); // 0 (absolute zero)
|
|
13
15
|
*/
|
|
14
16
|
var toKelvin = exports.toKelvin = function toKelvin(celsius) {
|
|
15
17
|
return (0, _addition.addition)(celsius, 273.15);
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* UUID v7
|
|
2
|
+
* Generates a UUID v7 (Universally Unique Identifier version 7)
|
|
3
|
+
* @returns {string} A UUID v7 string in the format xxxxxxxx-xxxx-7xxx-8xxx-xxxxxxxxxxxx
|
|
3
4
|
* @example
|
|
4
|
-
* const
|
|
5
|
+
* const id = uuidv7(); // e.g. "018d6e78-e1e5-7c3c-8bf9-ae5942f2ba1c"
|
|
6
|
+
* @description
|
|
7
|
+
* UUID v7 is time-ordered and contains:
|
|
8
|
+
* - 48 bits of Unix timestamp in milliseconds
|
|
9
|
+
* - 74 bits of random data
|
|
10
|
+
* - 4 bits of version (7)
|
|
11
|
+
* - 2 bits of variant (2)
|
|
12
|
+
* This implementation follows the UUID v7 draft specification.
|
|
5
13
|
*/
|
|
6
14
|
export declare const uuidv7: () => string;
|
|
@@ -13,9 +13,17 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
|
|
|
13
13
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
14
14
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
15
15
|
/**
|
|
16
|
-
* UUID v7
|
|
16
|
+
* Generates a UUID v7 (Universally Unique Identifier version 7)
|
|
17
|
+
* @returns {string} A UUID v7 string in the format xxxxxxxx-xxxx-7xxx-8xxx-xxxxxxxxxxxx
|
|
17
18
|
* @example
|
|
18
|
-
* const
|
|
19
|
+
* const id = uuidv7(); // e.g. "018d6e78-e1e5-7c3c-8bf9-ae5942f2ba1c"
|
|
20
|
+
* @description
|
|
21
|
+
* UUID v7 is time-ordered and contains:
|
|
22
|
+
* - 48 bits of Unix timestamp in milliseconds
|
|
23
|
+
* - 74 bits of random data
|
|
24
|
+
* - 4 bits of version (7)
|
|
25
|
+
* - 2 bits of variant (2)
|
|
26
|
+
* This implementation follows the UUID v7 draft specification.
|
|
19
27
|
*/
|
|
20
28
|
var uuidv7 = exports.uuidv7 = function uuidv7() {
|
|
21
29
|
var DIGITS = "0123456789abcdef";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* x < y
|
|
3
|
-
* @param {number} x
|
|
4
|
-
* @param {number} y
|
|
5
|
-
* @return {[number, number]}
|
|
2
|
+
* Swaps two numbers to ensure x < y
|
|
3
|
+
* @param {number} x First number
|
|
4
|
+
* @param {number} y Second number
|
|
5
|
+
* @return {[number, number]} Array with numbers in ascending order
|
|
6
6
|
* @example valueSwap(2, 1); // [1, 2]
|
|
7
|
+
* @example valueSwap(1, 2); // [1, 2]
|
|
7
8
|
*/
|
|
8
9
|
export declare const valueSwap: (x: number, y: number) => [number, number];
|
|
@@ -5,11 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.valueSwap = void 0;
|
|
7
7
|
/**
|
|
8
|
-
* x < y
|
|
9
|
-
* @param {number} x
|
|
10
|
-
* @param {number} y
|
|
11
|
-
* @return {[number, number]}
|
|
8
|
+
* Swaps two numbers to ensure x < y
|
|
9
|
+
* @param {number} x First number
|
|
10
|
+
* @param {number} y Second number
|
|
11
|
+
* @return {[number, number]} Array with numbers in ascending order
|
|
12
12
|
* @example valueSwap(2, 1); // [1, 2]
|
|
13
|
+
* @example valueSwap(1, 2); // [1, 2]
|
|
13
14
|
*/
|
|
14
15
|
var valueSwap = exports.valueSwap = function valueSwap(x, y) {
|
|
15
16
|
return x < y ? [x, y] : [y, x];
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Xoshiro256
|
|
3
|
-
* @param state
|
|
4
|
-
* @
|
|
2
|
+
* Generates random numbers using the Xoshiro256** algorithm
|
|
3
|
+
* @param {[number, number, number, number]} state Array of four 32-bit state values
|
|
4
|
+
* @param {number} [min=0] Minimum value of the generated random number (inclusive)
|
|
5
|
+
* @param {number} [max=1] Maximum value of the generated random number (exclusive)
|
|
6
|
+
* @returns {number} Generated random number between min and max
|
|
7
|
+
* @description
|
|
8
|
+
* Xoshiro256** is a fast, high-quality pseudorandom number generator.
|
|
9
|
+
* This implementation modifies the internal state array in place.
|
|
5
10
|
*/
|
|
6
11
|
export declare const xoshiro256: (state: [number, number, number, number], min?: number, max?: number) => number;
|
|
@@ -6,9 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.xoshiro256 = void 0;
|
|
7
7
|
var _bitwise = require("./bitwise");
|
|
8
8
|
/**
|
|
9
|
-
* Xoshiro256
|
|
10
|
-
* @param state
|
|
11
|
-
* @
|
|
9
|
+
* Generates random numbers using the Xoshiro256** algorithm
|
|
10
|
+
* @param {[number, number, number, number]} state Array of four 32-bit state values
|
|
11
|
+
* @param {number} [min=0] Minimum value of the generated random number (inclusive)
|
|
12
|
+
* @param {number} [max=1] Maximum value of the generated random number (exclusive)
|
|
13
|
+
* @returns {number} Generated random number between min and max
|
|
14
|
+
* @description
|
|
15
|
+
* Xoshiro256** is a fast, high-quality pseudorandom number generator.
|
|
16
|
+
* This implementation modifies the internal state array in place.
|
|
12
17
|
*/
|
|
13
18
|
var xoshiro256 = exports.xoshiro256 = function xoshiro256(state) {
|
|
14
19
|
var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* @param {T} object -
|
|
4
|
-
* @param {string | string[]} path -
|
|
5
|
-
* @returns {boolean}
|
|
2
|
+
* Determines if an object has a specified path
|
|
3
|
+
* @param {T} object - Object to check
|
|
4
|
+
* @param {string | string[]} path - Path to check
|
|
5
|
+
* @returns {boolean} Returns true if path exists, false otherwise
|
|
6
6
|
* @example has({ a: { b: 1 } }, "a.b"); // true
|
|
7
7
|
* has({ a: { b: 1 } }, ["a", "b"]); // true
|
|
8
8
|
* has({ a: { b: 1 } }, "a.c"); // false
|
package/module/es5/Object/has.js
CHANGED
|
@@ -14,10 +14,10 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
16
|
/**
|
|
17
|
-
*
|
|
18
|
-
* @param {T} object -
|
|
19
|
-
* @param {string | string[]} path -
|
|
20
|
-
* @returns {boolean}
|
|
17
|
+
* Determines if an object has a specified path
|
|
18
|
+
* @param {T} object - Object to check
|
|
19
|
+
* @param {string | string[]} path - Path to check
|
|
20
|
+
* @returns {boolean} Returns true if path exists, false otherwise
|
|
21
21
|
* @example has({ a: { b: 1 } }, "a.b"); // true
|
|
22
22
|
* has({ a: { b: 1 } }, ["a", "b"]); // true
|
|
23
23
|
* has({ a: { b: 1 } }, "a.c"); // false
|
|
@@ -2,9 +2,9 @@ type PropertyName = string | number | symbol;
|
|
|
2
2
|
type IterateeFunction<T> = (value: T) => PropertyName;
|
|
3
3
|
type Iteratee<T> = IterateeFunction<T> | keyof T;
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
6
|
-
* @param collection
|
|
7
|
-
* @param iteratee
|
|
5
|
+
* Creates an object composed of keys generated from the results of running each element of collection through iteratee
|
|
6
|
+
* @param collection The collection to iterate over
|
|
7
|
+
* @param iteratee The iteratee function or property name to generate the key
|
|
8
8
|
*/
|
|
9
9
|
export declare function keyBy<T>(collection: T[] | Record<PropertyName, T>, iteratee?: Iteratee<T>): Record<PropertyName, T>;
|
|
10
10
|
export {};
|
|
@@ -8,9 +8,9 @@ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol
|
|
|
8
8
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
9
9
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
10
10
|
/**
|
|
11
|
-
*
|
|
12
|
-
* @param collection
|
|
13
|
-
* @param iteratee
|
|
11
|
+
* Creates an object composed of keys generated from the results of running each element of collection through iteratee
|
|
12
|
+
* @param collection The collection to iterate over
|
|
13
|
+
* @param iteratee The iteratee function or property name to generate the key
|
|
14
14
|
*/
|
|
15
15
|
function keyBy(collection, iteratee) {
|
|
16
16
|
var getKey = normalizeIteratee(iteratee);
|
|
@@ -40,7 +40,7 @@ function keyBy(collection, iteratee) {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* Normalizes the iteratee function
|
|
44
44
|
*/
|
|
45
45
|
function normalizeIteratee(iteratee) {
|
|
46
46
|
if (!iteratee) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Creates a new object with only the specified properties from the source object.
|
|
3
3
|
*
|
|
4
|
-
* @template T -
|
|
5
|
-
* @template K -
|
|
6
|
-
* @param {T} object -
|
|
7
|
-
* @param {...K[]} keys -
|
|
8
|
-
* @returns {Pick<T, K>}
|
|
4
|
+
* @template T - Type of the source object.
|
|
5
|
+
* @template K - Type of the keys to extract (subset of T's keys).
|
|
6
|
+
* @param {T} object - The source object to extract properties from.
|
|
7
|
+
* @param {...K[]} keys - The property keys to extract.
|
|
8
|
+
* @returns {Pick<T, K>} A new object containing only the specified properties.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* ```typescript
|
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.pick = void 0;
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Creates a new object with only the specified properties from the source object.
|
|
9
9
|
*
|
|
10
|
-
* @template T -
|
|
11
|
-
* @template K -
|
|
12
|
-
* @param {T} object -
|
|
13
|
-
* @param {...K[]} keys -
|
|
14
|
-
* @returns {Pick<T, K>}
|
|
10
|
+
* @template T - Type of the source object.
|
|
11
|
+
* @template K - Type of the keys to extract (subset of T's keys).
|
|
12
|
+
* @param {T} object - The source object to extract properties from.
|
|
13
|
+
* @param {...K[]} keys - The property keys to extract.
|
|
14
|
+
* @returns {Pick<T, K>} A new object containing only the specified properties.
|
|
15
15
|
*
|
|
16
16
|
* @example
|
|
17
17
|
* ```typescript
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { PickDeep } from "$/object/pickDeep";
|
|
2
2
|
import type { PickDeepKey } from "$/object/pickDeepKey";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Creates a new object by deeply selecting properties from the source object based on specified keys.
|
|
5
5
|
*
|
|
6
|
-
* @template T -
|
|
7
|
-
* @template K -
|
|
8
|
-
* @param {T} object -
|
|
9
|
-
* @param {...K[]} keys -
|
|
10
|
-
* @returns {PickDeep<T>}
|
|
6
|
+
* @template T - Type of the source object.
|
|
7
|
+
* @template K - Type of property keys to select. Must be a subset of PickDeepKey<T>.
|
|
8
|
+
* @param {T} object - The source object to extract properties from.
|
|
9
|
+
* @param {...K[]} keys - Property keys to extract. Can use dot notation for nested properties.
|
|
10
|
+
* @returns {PickDeep<T>} A new object containing only the specified properties.
|
|
11
11
|
*
|
|
12
12
|
* @example
|
|
13
13
|
* ```typescript
|
|
14
14
|
* const obj = { a: { b: { c: 1, d: 2 }, e: 3 }, f: 4 };
|
|
15
15
|
* const picked = pickDeep(obj, 'a.b.c', 'f');
|
|
16
|
-
* // picked
|
|
16
|
+
* // picked will be { a: { b: { c: 1 } }, f: 4 }
|
|
17
17
|
* ```
|
|
18
18
|
*/
|
|
19
19
|
export declare const pickDeep: <T extends object, K extends PickDeepKey<T>>(object: T, ...keys: K[]) => PickDeep<T>;
|
|
@@ -18,19 +18,19 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
18
18
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
19
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Creates a new object by deeply selecting properties from the source object based on specified keys.
|
|
22
22
|
*
|
|
23
|
-
* @template T -
|
|
24
|
-
* @template K -
|
|
25
|
-
* @param {T} object -
|
|
26
|
-
* @param {...K[]} keys -
|
|
27
|
-
* @returns {PickDeep<T>}
|
|
23
|
+
* @template T - Type of the source object.
|
|
24
|
+
* @template K - Type of property keys to select. Must be a subset of PickDeepKey<T>.
|
|
25
|
+
* @param {T} object - The source object to extract properties from.
|
|
26
|
+
* @param {...K[]} keys - Property keys to extract. Can use dot notation for nested properties.
|
|
27
|
+
* @returns {PickDeep<T>} A new object containing only the specified properties.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* ```typescript
|
|
31
31
|
* const obj = { a: { b: { c: 1, d: 2 }, e: 3 }, f: 4 };
|
|
32
32
|
* const picked = pickDeep(obj, 'a.b.c', 'f');
|
|
33
|
-
* // picked
|
|
33
|
+
* // picked will be { a: { b: { c: 1 } }, f: 4 }
|
|
34
34
|
* ```
|
|
35
35
|
*/
|
|
36
36
|
var pickDeep = exports.pickDeep = function pickDeep(object) {
|