umt 1.9.0 → 2.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/module/Array/binarySearch.d.ts +6 -0
- package/module/Array/binarySearch.js +24 -0
- package/module/Array/binarySearch.js.map +1 -0
- package/module/Array/compact.d.ts +1 -0
- package/module/Array/compact.js +2 -0
- package/module/Array/compact.js.map +1 -0
- package/module/Array/getArraysCommon.d.ts +5 -5
- package/module/Array/getArraysCommon.js +5 -5
- package/module/Array/getArraysCommon.js.map +1 -1
- package/module/Array/index.d.ts +2 -0
- package/module/Array/index.js +2 -0
- package/module/Array/index.js.map +1 -1
- package/module/Array/range.d.ts +3 -1
- package/module/Array/range.js +5 -3
- package/module/Array/range.js.map +1 -1
- package/module/Math/flexibleNumberConversion.d.ts +27 -0
- package/module/Math/flexibleNumberConversion.js +64 -0
- package/module/Math/flexibleNumberConversion.js.map +1 -0
- package/module/Math/index.d.ts +1 -0
- package/module/Math/index.js +1 -0
- package/module/Math/index.js.map +1 -1
- package/module/Math/linearCongruentialGenerator.d.ts +4 -4
- package/module/Math/linearCongruentialGenerator.js +4 -8
- package/module/Math/linearCongruentialGenerator.js.map +1 -1
- package/module/Math/xoshiro256.d.ts +4 -6
- package/module/Math/xoshiro256.js +14 -16
- package/module/Math/xoshiro256.js.map +1 -1
- package/module/Object/index.d.ts +3 -0
- package/module/Object/index.js +3 -0
- package/module/Object/index.js.map +1 -1
- package/module/Object/keyBy.d.ts +10 -0
- package/module/Object/keyBy.js +34 -0
- package/module/Object/keyBy.js.map +1 -0
- package/module/Object/pick.d.ts +16 -0
- package/module/Object/pick.js +23 -0
- package/module/Object/pick.js.map +1 -0
- package/module/Object/pickDeep.d.ts +19 -0
- package/module/Object/pickDeep.js +41 -0
- package/module/Object/pickDeep.js.map +1 -0
- package/module/String/hasNoLetters.d.ts +6 -0
- package/module/String/hasNoLetters.js +13 -0
- package/module/String/hasNoLetters.js.map +1 -0
- package/module/String/index.d.ts +1 -0
- package/module/String/index.js +1 -0
- package/module/String/index.js.map +1 -1
- package/module/Time/convertTime.d.ts +10 -0
- package/module/Time/convertTime.js +23 -0
- package/module/Time/convertTime.js.map +1 -0
- package/module/Time/index.d.ts +1 -0
- package/module/Time/index.js +2 -0
- package/module/Time/index.js.map +1 -0
- package/module/Tool/index.d.ts +1 -0
- package/module/Tool/index.js +1 -0
- package/module/Tool/index.js.map +1 -1
- package/module/Tool/parseJson.d.ts +1 -0
- package/module/Tool/parseJson.js +4 -0
- package/module/Tool/parseJson.js.map +1 -0
- package/module/UA/extractBrowserFromUserAgent.d.ts +2 -2
- package/module/UA/extractBrowserFromUserAgent.js.map +1 -1
- package/module/UA/extractDeviceFromUserAgent.d.ts +2 -2
- package/module/UA/extractDeviceFromUserAgent.js.map +1 -1
- package/module/UA/extractOsFromUserAgent.d.ts +2 -0
- package/module/UA/{extractOSFromUserAgent.js.map → extractOsFromUserAgent.js.map} +1 -1
- package/module/Validate/isBrowser.d.ts +1 -1
- package/module/Validate/isBrowser.js +9 -8
- package/module/Validate/isBrowser.js.map +1 -1
- package/module/Validate/isBun.d.ts +1 -1
- package/module/Validate/isBun.js +9 -9
- package/module/Validate/isBun.js.map +1 -1
- package/module/Validate/isNode.d.ts +1 -1
- package/module/Validate/isNode.js +8 -8
- package/module/Validate/isNode.js.map +1 -1
- package/module/Validate/isNodeWebkit.d.ts +1 -1
- package/module/Validate/isNodeWebkit.js +1 -1
- package/module/Validate/isNodeWebkit.js.map +1 -1
- package/module/es5/Advance/index.d.ts +1 -0
- package/module/es5/Advance/index.js +16 -0
- package/module/es5/Advance/rangeAdvance.d.ts +10 -0
- package/module/es5/Advance/rangeAdvance.js +27 -0
- package/module/es5/Array/arraysJoin.d.ts +8 -0
- package/module/es5/Array/arraysJoin.js +25 -0
- package/module/es5/Array/binarySearch.d.ts +6 -0
- package/module/es5/Array/binarySearch.js +28 -0
- package/module/es5/Array/checkFlagAlignment.d.ts +13 -0
- package/module/es5/Array/checkFlagAlignment.js +60 -0
- package/module/es5/Array/chunk.d.ts +8 -0
- package/module/es5/Array/chunk.js +20 -0
- package/module/es5/Array/compact.d.ts +1 -0
- package/module/es5/Array/compact.js +9 -0
- package/module/es5/Array/compareFunctionDefault.d.ts +1 -0
- package/module/es5/Array/compareFunctionDefault.js +9 -0
- package/module/es5/Array/drop.d.ts +13 -0
- package/module/es5/Array/drop.js +52 -0
- package/module/es5/Array/first.d.ts +8 -0
- package/module/es5/Array/first.js +15 -0
- package/module/es5/Array/generateNumberArray.d.ts +11 -0
- package/module/es5/Array/generateNumberArray.js +43 -0
- package/module/es5/Array/getArraysCommon.d.ts +8 -0
- package/module/es5/Array/getArraysCommon.js +24 -0
- package/module/es5/Array/getArraysDiff.d.ts +8 -0
- package/module/es5/Array/getArraysDiff.js +49 -0
- package/module/es5/Array/groupBy.d.ts +7 -0
- package/module/es5/Array/groupBy.js +22 -0
- package/module/es5/Array/index.d.ts +23 -0
- package/module/es5/Array/index.js +258 -0
- package/module/es5/Array/insertionSort.d.ts +22 -0
- package/module/es5/Array/insertionSort.js +43 -0
- package/module/es5/Array/mergeSort.d.ts +8 -0
- package/module/es5/Array/mergeSort.js +45 -0
- package/module/es5/Array/pop.d.ts +6 -0
- package/module/es5/Array/pop.js +20 -0
- package/module/es5/Array/quickSort.d.ts +14 -0
- package/module/es5/Array/quickSort.js +99 -0
- package/module/es5/Array/randomSelect.d.ts +9 -0
- package/module/es5/Array/randomSelect.js +27 -0
- package/module/es5/Array/range.d.ts +11 -0
- package/module/es5/Array/range.js +29 -0
- package/module/es5/Array/shuffle.d.ts +7 -0
- package/module/es5/Array/shuffle.js +30 -0
- package/module/es5/Array/shuffle2DArray.d.ts +9 -0
- package/module/es5/Array/shuffle2DArray.js +51 -0
- package/module/es5/Array/sum.d.ts +7 -0
- package/module/es5/Array/sum.js +18 -0
- package/module/es5/Array/timSort.d.ts +15 -0
- package/module/es5/Array/timSort.js +88 -0
- package/module/es5/Array/zip.d.ts +7 -0
- package/module/es5/Array/zip.js +35 -0
- package/module/es5/Array/zipLongest.d.ts +10 -0
- package/module/es5/Array/zipLongest.js +35 -0
- package/module/es5/Color/cmykToRgba.d.ts +16 -0
- package/module/es5/Color/cmykToRgba.js +55 -0
- package/module/es5/Color/hexaToRgba.d.ts +12 -0
- package/module/es5/Color/hexaToRgba.js +30 -0
- package/module/es5/Color/hslaToRgba.d.ts +15 -0
- package/module/es5/Color/hslaToRgba.js +77 -0
- package/module/es5/Color/index.d.ts +6 -0
- package/module/es5/Color/index.js +71 -0
- package/module/es5/Color/rgbaToCmyk.d.ts +18 -0
- package/module/es5/Color/rgbaToCmyk.js +36 -0
- package/module/es5/Color/rgbaToHexA.d.ts +12 -0
- package/module/es5/Color/rgbaToHexA.js +28 -0
- package/module/es5/Color/rgbaToHsla.d.ts +17 -0
- package/module/es5/Color/rgbaToHsla.js +60 -0
- package/module/es5/Consts/clock.d.ts +44 -0
- package/module/es5/Consts/clock.js +60 -0
- package/module/es5/Consts/index.d.ts +1 -0
- package/module/es5/Consts/index.js +16 -0
- package/module/es5/Date/birthday.d.ts +12 -0
- package/module/es5/Date/birthday.js +24 -0
- package/module/es5/Date/dateRange.d.ts +8 -0
- package/module/es5/Date/dateRange.js +23 -0
- package/module/es5/Date/dayOfWeek.d.ts +15 -0
- package/module/es5/Date/dayOfWeek.js +23 -0
- package/module/es5/Date/format.d.ts +7 -0
- package/module/es5/Date/format.js +56 -0
- package/module/es5/Date/getDay.d.ts +17 -0
- package/module/es5/Date/getDay.js +57 -0
- package/module/es5/Date/getTimezoneOffsetString.d.ts +6 -0
- package/module/es5/Date/getTimezoneOffsetString.js +19 -0
- package/module/es5/Date/index.d.ts +9 -0
- package/module/es5/Date/index.js +104 -0
- package/module/es5/Date/isLeapYear.d.ts +6 -0
- package/module/es5/Date/isLeapYear.js +14 -0
- package/module/es5/Date/new.d.ts +37 -0
- package/module/es5/Date/new.js +46 -0
- package/module/es5/Date/now.d.ts +8 -0
- package/module/es5/Date/now.js +17 -0
- package/module/es5/Error/index.d.ts +1 -0
- package/module/es5/Error/index.js +16 -0
- package/module/es5/Error/safeExecute.d.ts +11 -0
- package/module/es5/Error/safeExecute.js +25 -0
- package/module/es5/IP/cidrToLong.d.ts +6 -0
- package/module/es5/IP/cidrToLong.js +14 -0
- package/module/es5/IP/cidrToSubnetMask.d.ts +6 -0
- package/module/es5/IP/cidrToSubnetMask.js +16 -0
- package/module/es5/IP/getIpClass.d.ts +6 -0
- package/module/es5/IP/getIpClass.js +34 -0
- package/module/es5/IP/getNetworkAddress.d.ts +7 -0
- package/module/es5/IP/getNetworkAddress.js +19 -0
- package/module/es5/IP/index.d.ts +9 -0
- package/module/es5/IP/index.js +104 -0
- package/module/es5/IP/ipToBinaryString.d.ts +6 -0
- package/module/es5/IP/ipToBinaryString.js +16 -0
- package/module/es5/IP/ipToLong.d.ts +6 -0
- package/module/es5/IP/ipToLong.js +15 -0
- package/module/es5/IP/isInRange.d.ts +8 -0
- package/module/es5/IP/isInRange.js +18 -0
- package/module/es5/IP/isPrivateIp.d.ts +6 -0
- package/module/es5/IP/isPrivateIp.js +29 -0
- package/module/es5/IP/longToIp.d.ts +6 -0
- package/module/es5/IP/longToIp.js +19 -0
- package/module/es5/IP/subnetMaskToCidr.d.ts +6 -0
- package/module/es5/IP/subnetMaskToCidr.js +23 -0
- package/module/es5/Math/addition.d.ts +7 -0
- package/module/es5/Math/addition.js +32 -0
- package/module/es5/Math/average.d.ts +7 -0
- package/module/es5/Math/average.js +24 -0
- package/module/es5/Math/bitwise.d.ts +13 -0
- package/module/es5/Math/bitwise.js +36 -0
- package/module/es5/Math/calculator/calculator.d.ts +10 -0
- package/module/es5/Math/calculator/calculator.js +21 -0
- package/module/es5/Math/calculator/calculatorInitialization.d.ts +9 -0
- package/module/es5/Math/calculator/calculatorInitialization.js +22 -0
- package/module/es5/Math/calculator/convertCurrency.d.ts +11 -0
- package/module/es5/Math/calculator/convertCurrency.js +33 -0
- package/module/es5/Math/calculator/core.d.ts +3 -0
- package/module/es5/Math/calculator/core.js +132 -0
- package/module/es5/Math/calculator/index.d.ts +5 -0
- package/module/es5/Math/calculator/index.js +60 -0
- package/module/es5/Math/calculator/literalExpression.d.ts +7 -0
- package/module/es5/Math/calculator/literalExpression.js +74 -0
- package/module/es5/Math/degToRad.d.ts +7 -0
- package/module/es5/Math/degToRad.js +17 -0
- package/module/es5/Math/deviationValue.d.ts +9 -0
- package/module/es5/Math/deviationValue.js +17 -0
- package/module/es5/Math/division.d.ts +10 -0
- package/module/es5/Math/division.js +36 -0
- package/module/es5/Math/factorial.d.ts +7 -0
- package/module/es5/Math/factorial.js +20 -0
- package/module/es5/Math/factorize.d.ts +7 -0
- package/module/es5/Math/factorize.js +26 -0
- package/module/es5/Math/flexibleNumberConversion.d.ts +27 -0
- package/module/es5/Math/flexibleNumberConversion.js +75 -0
- package/module/es5/Math/gcd.d.ts +9 -0
- package/module/es5/Math/gcd.js +55 -0
- package/module/es5/Math/getDecimalLength.d.ts +7 -0
- package/module/es5/Math/getDecimalLength.js +19 -0
- package/module/es5/Math/index.d.ts +39 -0
- package/module/es5/Math/index.js +434 -0
- package/module/es5/Math/lcm.d.ts +8 -0
- package/module/es5/Math/lcm.js +33 -0
- package/module/es5/Math/linearCongruentialGenerator.d.ts +11 -0
- package/module/es5/Math/linearCongruentialGenerator.js +22 -0
- package/module/es5/Math/mathConverter.d.ts +7 -0
- package/module/es5/Math/mathConverter.js +46 -0
- package/module/es5/Math/mathSeparator.d.ts +7 -0
- package/module/es5/Math/mathSeparator.js +37 -0
- package/module/es5/Math/max.d.ts +7 -0
- package/module/es5/Math/max.js +24 -0
- package/module/es5/Math/median.d.ts +7 -0
- package/module/es5/Math/median.js +18 -0
- package/module/es5/Math/min.d.ts +7 -0
- package/module/es5/Math/min.js +24 -0
- package/module/es5/Math/multiples.d.ts +8 -0
- package/module/es5/Math/multiples.js +20 -0
- package/module/es5/Math/multiplication.d.ts +7 -0
- package/module/es5/Math/multiplication.js +24 -0
- package/module/es5/Math/nCr.d.ts +8 -0
- package/module/es5/Math/nCr.js +26 -0
- package/module/es5/Math/nHr.d.ts +8 -0
- package/module/es5/Math/nHr.js +21 -0
- package/module/es5/Math/nPr.d.ts +8 -0
- package/module/es5/Math/nPr.js +23 -0
- package/module/es5/Math/primeFactorization.d.ts +10 -0
- package/module/es5/Math/primeFactorization.js +31 -0
- package/module/es5/Math/quotient.d.ts +8 -0
- package/module/es5/Math/quotient.js +16 -0
- package/module/es5/Math/radToDeg.d.ts +7 -0
- package/module/es5/Math/radToDeg.js +16 -0
- package/module/es5/Math/random.d.ts +8 -0
- package/module/es5/Math/random.js +17 -0
- package/module/es5/Math/reduce.d.ts +16 -0
- package/module/es5/Math/reduce.js +28 -0
- package/module/es5/Math/repeatedTrial.d.ts +12 -0
- package/module/es5/Math/repeatedTrial.js +23 -0
- package/module/es5/Math/roundOf.d.ts +8 -0
- package/module/es5/Math/roundOf.js +17 -0
- package/module/es5/Math/solveEquation.d.ts +19 -0
- package/module/es5/Math/solveEquation.js +80 -0
- package/module/es5/Math/standardDeviation.d.ts +7 -0
- package/module/es5/Math/standardDeviation.js +24 -0
- package/module/es5/Math/subtract.d.ts +7 -0
- package/module/es5/Math/subtract.js +30 -0
- package/module/es5/Math/toBaseN.d.ts +8 -0
- package/module/es5/Math/toBaseN.js +17 -0
- package/module/es5/Math/toCelsius.d.ts +7 -0
- package/module/es5/Math/toCelsius.js +16 -0
- package/module/es5/Math/toKelvin.d.ts +7 -0
- package/module/es5/Math/toKelvin.js +16 -0
- package/module/es5/Math/uuidv7.d.ts +6 -0
- package/module/es5/Math/uuidv7.js +59 -0
- package/module/es5/Math/valueSwap.d.ts +8 -0
- package/module/es5/Math/valueSwap.js +16 -0
- package/module/es5/Math/xoshiro256.d.ts +6 -0
- package/module/es5/Math/xoshiro256.js +26 -0
- package/module/es5/Object/has.d.ts +12 -0
- package/module/es5/Object/has.js +44 -0
- package/module/es5/Object/index.d.ts +4 -0
- package/module/es5/Object/index.js +49 -0
- package/module/es5/Object/keyBy.d.ts +10 -0
- package/module/es5/Object/keyBy.js +57 -0
- package/module/es5/Object/pick.d.ts +16 -0
- package/module/es5/Object/pick.js +32 -0
- package/module/es5/Object/pickDeep.d.ts +19 -0
- package/module/es5/Object/pickDeep.js +73 -0
- package/module/es5/Simple/Array/index.d.ts +1 -0
- package/module/es5/Simple/Array/index.js +16 -0
- package/module/es5/Simple/Array/quickSortSimple.d.ts +10 -0
- package/module/es5/Simple/Array/quickSortSimple.js +31 -0
- package/module/es5/Simple/Date/birthdaySimple.d.ts +20 -0
- package/module/es5/Simple/Date/birthdaySimple.js +55 -0
- package/module/es5/Simple/Date/dayOfWeekSimple.d.ts +26 -0
- package/module/es5/Simple/Date/dayOfWeekSimple.js +78 -0
- package/module/es5/Simple/Date/index.d.ts +3 -0
- package/module/es5/Simple/Date/index.js +38 -0
- package/module/es5/Simple/Date/nowSimple.d.ts +9 -0
- package/module/es5/Simple/Date/nowSimple.js +24 -0
- package/module/es5/Simple/Math/deviationValueSimple.d.ts +13 -0
- package/module/es5/Simple/Math/deviationValueSimple.js +24 -0
- package/module/es5/Simple/Math/index.d.ts +1 -0
- package/module/es5/Simple/Math/index.js +16 -0
- package/module/es5/Simple/index.d.ts +3 -0
- package/module/es5/Simple/index.js +38 -0
- package/module/es5/String/deleteSpaces.d.ts +7 -0
- package/module/es5/String/deleteSpaces.js +15 -0
- package/module/es5/String/formatString.d.ts +13 -0
- package/module/es5/String/formatString.js +26 -0
- package/module/es5/String/fromBase64.d.ts +6 -0
- package/module/es5/String/fromBase64.js +19 -0
- package/module/es5/String/hasNoLetters.d.ts +6 -0
- package/module/es5/String/hasNoLetters.js +18 -0
- package/module/es5/String/index.d.ts +13 -0
- package/module/es5/String/index.js +148 -0
- package/module/es5/String/padEnd.d.ts +9 -0
- package/module/es5/String/padEnd.js +24 -0
- package/module/es5/String/padStart.d.ts +9 -0
- package/module/es5/String/padStart.js +25 -0
- package/module/es5/String/randomString.d.ts +7 -0
- package/module/es5/String/randomString.js +22 -0
- package/module/es5/String/randomStringInitialization.d.ts +6 -0
- package/module/es5/String/randomStringInitialization.js +18 -0
- package/module/es5/String/reverseString.d.ts +7 -0
- package/module/es5/String/reverseString.js +15 -0
- package/module/es5/String/toBase64.d.ts +6 -0
- package/module/es5/String/toBase64.js +16 -0
- package/module/es5/String/toHalfWidth.d.ts +6 -0
- package/module/es5/String/toHalfWidth.js +18 -0
- package/module/es5/String/trimCharacters.d.ts +8 -0
- package/module/es5/String/trimCharacters.js +18 -0
- package/module/es5/String/trimEndCharacters.d.ts +8 -0
- package/module/es5/String/trimEndCharacters.js +20 -0
- package/module/es5/String/trimStartCharacters.d.ts +8 -0
- package/module/es5/String/trimStartCharacters.js +20 -0
- package/module/es5/Time/convertTime.d.ts +10 -0
- package/module/es5/Time/convertTime.js +29 -0
- package/module/es5/Time/index.d.ts +1 -0
- package/module/es5/Time/index.js +16 -0
- package/module/es5/Tool/createPipeline.d.ts +18 -0
- package/module/es5/Tool/createPipeline.js +29 -0
- package/module/es5/Tool/index.d.ts +2 -0
- package/module/es5/Tool/index.js +27 -0
- package/module/es5/Tool/parseJson.d.ts +1 -0
- package/module/es5/Tool/parseJson.js +9 -0
- package/module/es5/UA/extractBrowserFromUserAgent.d.ts +2 -0
- package/module/es5/UA/extractBrowserFromUserAgent.js +24 -0
- package/module/es5/UA/extractDeviceFromUserAgent.d.ts +2 -0
- package/module/es5/UA/extractDeviceFromUserAgent.js +27 -0
- package/module/es5/UA/extractOsFromUserAgent.d.ts +2 -0
- package/module/es5/UA/extractOsFromUserAgent.js +24 -0
- package/module/es5/UA/index.d.ts +4 -0
- package/module/es5/UA/index.js +49 -0
- package/module/es5/UA/parseUserAgent.d.ts +2 -0
- package/module/es5/UA/parseUserAgent.js +17 -0
- package/module/es5/Validate/array/core.d.ts +2 -0
- package/module/es5/Validate/array/core.js +51 -0
- package/module/es5/Validate/array/index.d.ts +1 -0
- package/module/es5/Validate/array/index.js +16 -0
- package/module/es5/Validate/boolean/core.d.ts +2 -0
- package/module/es5/Validate/boolean/core.js +12 -0
- package/module/es5/Validate/boolean/index.d.ts +1 -0
- package/module/es5/Validate/boolean/index.js +16 -0
- package/module/es5/Validate/core/index.d.ts +2 -0
- package/module/es5/Validate/core/index.js +47 -0
- package/module/es5/Validate/index.d.ts +17 -0
- package/module/es5/Validate/index.js +192 -0
- package/module/es5/Validate/isArray.d.ts +8 -0
- package/module/es5/Validate/isArray.js +16 -0
- package/module/es5/Validate/isBrowser.d.ts +4 -0
- package/module/es5/Validate/isBrowser.js +17 -0
- package/module/es5/Validate/isBun.d.ts +4 -0
- package/module/es5/Validate/isBun.js +17 -0
- package/module/es5/Validate/isDouble.d.ts +11 -0
- package/module/es5/Validate/isDouble.js +26 -0
- package/module/es5/Validate/isNode.d.ts +4 -0
- package/module/es5/Validate/isNode.js +16 -0
- package/module/es5/Validate/isNodeWebkit.d.ts +4 -0
- package/module/es5/Validate/isNodeWebkit.js +14 -0
- package/module/es5/Validate/isNotEmpty.d.ts +8 -0
- package/module/es5/Validate/isNotEmpty.js +17 -0
- package/module/es5/Validate/isNumber.d.ts +11 -0
- package/module/es5/Validate/isNumber.js +21 -0
- package/module/es5/Validate/isObject.d.ts +10 -0
- package/module/es5/Validate/isObject.js +17 -0
- package/module/es5/Validate/isPerfectSquare.d.ts +6 -0
- package/module/es5/Validate/isPerfectSquare.js +18 -0
- package/module/es5/Validate/isPrimeNumber.d.ts +7 -0
- package/module/es5/Validate/isPrimeNumber.js +23 -0
- package/module/es5/Validate/isValueNaN.d.ts +10 -0
- package/module/es5/Validate/isValueNaN.js +20 -0
- package/module/es5/Validate/number/core.d.ts +2 -0
- package/module/es5/Validate/number/core.js +12 -0
- package/module/es5/Validate/number/double.d.ts +2 -0
- package/module/es5/Validate/number/double.js +16 -0
- package/module/es5/Validate/number/even.d.ts +2 -0
- package/module/es5/Validate/number/even.js +15 -0
- package/module/es5/Validate/number/index.d.ts +7 -0
- package/module/es5/Validate/number/index.js +82 -0
- package/module/es5/Validate/number/maxValue.d.ts +2 -0
- package/module/es5/Validate/number/maxValue.js +15 -0
- package/module/es5/Validate/number/minValue.d.ts +2 -0
- package/module/es5/Validate/number/minValue.js +15 -0
- package/module/es5/Validate/number/odd.d.ts +2 -0
- package/module/es5/Validate/number/odd.js +15 -0
- package/module/es5/Validate/number/prime.d.ts +2 -0
- package/module/es5/Validate/number/prime.js +16 -0
- package/module/es5/Validate/object/core.d.ts +8 -0
- package/module/es5/Validate/object/core.js +34 -0
- package/module/es5/Validate/object/index.d.ts +1 -0
- package/module/es5/Validate/object/index.js +16 -0
- package/module/es5/Validate/string/core.d.ts +2 -0
- package/module/es5/Validate/string/core.js +12 -0
- package/module/es5/Validate/string/email.d.ts +2 -0
- package/module/es5/Validate/string/email.js +17 -0
- package/module/es5/Validate/string/index.d.ts +8 -0
- package/module/es5/Validate/string/index.js +93 -0
- package/module/es5/Validate/string/length.d.ts +2 -0
- package/module/es5/Validate/string/length.js +15 -0
- package/module/es5/Validate/string/maxLength.d.ts +2 -0
- package/module/es5/Validate/string/maxLength.js +15 -0
- package/module/es5/Validate/string/minLength.d.ts +2 -0
- package/module/es5/Validate/string/minLength.js +15 -0
- package/module/es5/Validate/string/numberString.d.ts +2 -0
- package/module/es5/Validate/string/numberString.js +16 -0
- package/module/es5/Validate/string/regexMatch.d.ts +2 -0
- package/module/es5/Validate/string/regexMatch.js +15 -0
- package/module/es5/Validate/string/uuid.d.ts +7 -0
- package/module/es5/Validate/string/uuid.js +26 -0
- package/module/es5/Validate/type.d.ts +13 -0
- package/module/es5/Validate/type.js +5 -0
- package/module/es5/index.d.ts +16 -0
- package/module/es5/index.js +181 -0
- package/module/es5/tests/integration/Array/drop-and-first.test.d.ts +1 -0
- package/module/es5/tests/integration/Array/drop-and-first.test.js +14 -0
- package/module/es5/tests/integration/Tool/parseJson-and-Validate.test.d.ts +1 -0
- package/module/es5/tests/integration/Tool/parseJson-and-Validate.test.js +26 -0
- package/module/es5/tests/unit/Advance/rangeAdvance.test.d.ts +1 -0
- package/module/es5/tests/unit/Advance/rangeAdvance.test.js +26 -0
- package/module/es5/tests/unit/Array/arraysJoin.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/arraysJoin.test.js +7 -0
- package/module/es5/tests/unit/Array/binarySearch.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/binarySearch.test.js +32 -0
- package/module/es5/tests/unit/Array/checkFlagAlignment.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/checkFlagAlignment.test.js +206 -0
- package/module/es5/tests/unit/Array/chunk.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/chunk.test.js +51 -0
- package/module/es5/tests/unit/Array/compact.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/compact.test.js +53 -0
- package/module/es5/tests/unit/Array/drop.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/drop.test.js +84 -0
- package/module/es5/tests/unit/Array/first.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/first.test.js +28 -0
- package/module/es5/tests/unit/Array/generateNumberArray.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/generateNumberArray.test.js +34 -0
- package/module/es5/tests/unit/Array/getArraysCommon.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/getArraysCommon.test.js +8 -0
- package/module/es5/tests/unit/Array/getArraysDiff.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/getArraysDiff.test.js +99 -0
- package/module/es5/tests/unit/Array/groupBy.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/groupBy.test.js +87 -0
- package/module/es5/tests/unit/Array/insertionSort.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/insertionSort.test.js +37 -0
- package/module/es5/tests/unit/Array/mergeSort.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/mergeSort.test.js +20 -0
- package/module/es5/tests/unit/Array/pop.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/pop.test.js +50 -0
- package/module/es5/tests/unit/Array/quickSort.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/quickSort.test.js +53 -0
- package/module/es5/tests/unit/Array/randomSelect.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/randomSelect.test.js +46 -0
- package/module/es5/tests/unit/Array/range.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/range.test.js +21 -0
- package/module/es5/tests/unit/Array/shuffle.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/shuffle.test.js +37 -0
- package/module/es5/tests/unit/Array/shuffle2DArray.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/shuffle2DArray.test.js +47 -0
- package/module/es5/tests/unit/Array/sum.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/sum.test.js +6 -0
- package/module/es5/tests/unit/Array/timSort.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/timSort.test.js +48 -0
- package/module/es5/tests/unit/Array/zip.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/zip.test.js +30 -0
- package/module/es5/tests/unit/Array/zipLongest.test.d.ts +1 -0
- package/module/es5/tests/unit/Array/zipLongest.test.js +31 -0
- package/module/es5/tests/unit/Color/cmykToRgba.test.d.ts +1 -0
- package/module/es5/tests/unit/Color/cmykToRgba.test.js +58 -0
- package/module/es5/tests/unit/Color/hexaToRgba.test.d.ts +1 -0
- package/module/es5/tests/unit/Color/hexaToRgba.test.js +63 -0
- package/module/es5/tests/unit/Color/hslaToRgba.test.d.ts +1 -0
- package/module/es5/tests/unit/Color/hslaToRgba.test.js +159 -0
- package/module/es5/tests/unit/Color/rgbaToCmyk.test.d.ts +1 -0
- package/module/es5/tests/unit/Color/rgbaToCmyk.test.js +73 -0
- package/module/es5/tests/unit/Color/rgbaToHexA.test.d.ts +1 -0
- package/module/es5/tests/unit/Color/rgbaToHexA.test.js +114 -0
- package/module/es5/tests/unit/Color/rgbaToHsla.test.d.ts +1 -0
- package/module/es5/tests/unit/Color/rgbaToHsla.test.js +100 -0
- package/module/es5/tests/unit/Consts/clock.test.d.ts +1 -0
- package/module/es5/tests/unit/Consts/clock.test.js +38 -0
- package/module/es5/tests/unit/Date/dayOfWeek.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/dayOfWeek.test.js +39 -0
- package/module/es5/tests/unit/Date/deleteSpace.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/deleteSpace.test.js +35 -0
- package/module/es5/tests/unit/Date/format.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/format.test.js +28 -0
- package/module/es5/tests/unit/Date/getTimezoneOffsetString.test.d.ts +1 -0
- package/module/es5/tests/unit/Date/getTimezoneOffsetString.test.js +26 -0
- package/module/es5/tests/unit/Error/safeExecute.test.d.ts +1 -0
- package/module/es5/tests/unit/Error/safeExecute.test.js +21 -0
- package/module/es5/tests/unit/IP/cidrToLong.test.d.ts +1 -0
- package/module/es5/tests/unit/IP/cidrToLong.test.js +10 -0
- package/module/es5/tests/unit/IP/cidrToSubnetMask.test.d.ts +1 -0
- package/module/es5/tests/unit/IP/cidrToSubnetMask.test.js +17 -0
- package/module/es5/tests/unit/IP/getIpClass.test.d.ts +1 -0
- package/module/es5/tests/unit/IP/getIpClass.test.js +25 -0
- package/module/es5/tests/unit/IP/getNetworkAddress.test.d.ts +1 -0
- package/module/es5/tests/unit/IP/getNetworkAddress.test.js +19 -0
- package/module/es5/tests/unit/IP/ipToBinaryString.test.d.ts +1 -0
- package/module/es5/tests/unit/IP/ipToBinaryString.test.js +17 -0
- package/module/es5/tests/unit/IP/ipToLong.test.d.ts +1 -0
- package/module/es5/tests/unit/IP/ipToLong.test.js +20 -0
- package/module/es5/tests/unit/IP/isInRange.test.d.ts +1 -0
- package/module/es5/tests/unit/IP/isInRange.test.js +11 -0
- package/module/es5/tests/unit/IP/isPrivateIp.test.d.ts +1 -0
- package/module/es5/tests/unit/IP/isPrivateIp.test.js +20 -0
- package/module/es5/tests/unit/IP/subnetMaskToCidr.test.d.ts +1 -0
- package/module/es5/tests/unit/IP/subnetMaskToCidr.test.js +27 -0
- package/module/es5/tests/unit/Math/addition.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/addition.test.js +79 -0
- package/module/es5/tests/unit/Math/average.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/average.test.js +26 -0
- package/module/es5/tests/unit/Math/bitwise.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/bitwise.test.js +62 -0
- package/module/es5/tests/unit/Math/calculator/calculator.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/calculator/calculator.test.js +76 -0
- package/module/es5/tests/unit/Math/calculator/calculatorInitialization.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/calculator/calculatorInitialization.test.js +10 -0
- package/module/es5/tests/unit/Math/calculator/convertCurrency.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/calculator/convertCurrency.test.js +40 -0
- package/module/es5/tests/unit/Math/calculator/literalExpression.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/calculator/literalExpression.test.js +51 -0
- package/module/es5/tests/unit/Math/degToRad.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/degToRad.test.js +50 -0
- package/module/es5/tests/unit/Math/deviationValue.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/deviationValue.test.js +30 -0
- package/module/es5/tests/unit/Math/division.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/division.test.js +34 -0
- package/module/es5/tests/unit/Math/factorial.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/factorial.test.js +26 -0
- package/module/es5/tests/unit/Math/factorize.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/factorize.test.js +13 -0
- package/module/es5/tests/unit/Math/flexibleNumberConversion.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/flexibleNumberConversion.test.js +195 -0
- package/module/es5/tests/unit/Math/gcd.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/gcd.test.js +35 -0
- package/module/es5/tests/unit/Math/getDecimalLength.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/getDecimalLength.test.js +8 -0
- package/module/es5/tests/unit/Math/lcm.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/lcm.test.js +36 -0
- package/module/es5/tests/unit/Math/linearCongruentialGenerator.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/linearCongruentialGenerator.test.js +25 -0
- package/module/es5/tests/unit/Math/mathConverter.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/mathConverter.test.js +37 -0
- package/module/es5/tests/unit/Math/mathSeparator.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/mathSeparator.test.js +41 -0
- package/module/es5/tests/unit/Math/max.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/max.test.js +7 -0
- package/module/es5/tests/unit/Math/median.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/median.test.js +17 -0
- package/module/es5/tests/unit/Math/min.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/min.test.js +7 -0
- package/module/es5/tests/unit/Math/multiples.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/multiples.test.js +14 -0
- package/module/es5/tests/unit/Math/multiplication.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/multiplication.test.js +14 -0
- package/module/es5/tests/unit/Math/nCr.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/nCr.test.js +21 -0
- package/module/es5/tests/unit/Math/nHr.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/nHr.test.js +22 -0
- package/module/es5/tests/unit/Math/nPr.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/nPr.test.js +21 -0
- package/module/es5/tests/unit/Math/primeFactorization.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/primeFactorization.test.js +13 -0
- package/module/es5/tests/unit/Math/quotient.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/quotient.test.js +14 -0
- package/module/es5/tests/unit/Math/radToDeg.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/radToDeg.test.js +49 -0
- package/module/es5/tests/unit/Math/random.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/random.test.js +23 -0
- package/module/es5/tests/unit/Math/reduce.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/reduce.test.js +14 -0
- package/module/es5/tests/unit/Math/repeatedTrial.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/repeatedTrial.test.js +9 -0
- package/module/es5/tests/unit/Math/roundOf.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/roundOf.test.js +15 -0
- package/module/es5/tests/unit/Math/solveEquation.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/solveEquation.test.js +24 -0
- package/module/es5/tests/unit/Math/standardDeviation.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/standardDeviation.test.js +6 -0
- package/module/es5/tests/unit/Math/subtract.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/subtract.test.js +34 -0
- package/module/es5/tests/unit/Math/toBaseN.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/toBaseN.test.js +23 -0
- package/module/es5/tests/unit/Math/toCelsius.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/toCelsius.test.js +6 -0
- package/module/es5/tests/unit/Math/toKelvin.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/toKelvin.test.js +6 -0
- package/module/es5/tests/unit/Math/uuidv7.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/uuidv7.test.js +33 -0
- package/module/es5/tests/unit/Math/valueSwap.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/valueSwap.test.js +10 -0
- package/module/es5/tests/unit/Math/xoshiro256.test.d.ts +1 -0
- package/module/es5/tests/unit/Math/xoshiro256.test.js +22 -0
- package/module/es5/tests/unit/Object/has.test.d.ts +1 -0
- package/module/es5/tests/unit/Object/has.test.js +60 -0
- package/module/es5/tests/unit/Object/keyBy.test.d.ts +1 -0
- package/module/es5/tests/unit/Object/keyBy.test.js +120 -0
- package/module/es5/tests/unit/Object/pick.test.d.ts +1 -0
- package/module/es5/tests/unit/Object/pick.test.js +109 -0
- package/module/es5/tests/unit/Object/pickDeep.test.d.ts +1 -0
- package/module/es5/tests/unit/Object/pickDeep.test.js +222 -0
- package/module/es5/tests/unit/Simple/Array/quickSortSimple.test.d.ts +1 -0
- package/module/es5/tests/unit/Simple/Array/quickSortSimple.test.js +18 -0
- package/module/es5/tests/unit/Simple/Date/dayOfWeekSimple.test.d.ts +1 -0
- package/module/es5/tests/unit/Simple/Date/dayOfWeekSimple.test.js +58 -0
- package/module/es5/tests/unit/Simple/Math/deviationValueSimple.test.d.ts +1 -0
- package/module/es5/tests/unit/Simple/Math/deviationValueSimple.test.js +7 -0
- package/module/es5/tests/unit/String/formatString.test.d.ts +1 -0
- package/module/es5/tests/unit/String/formatString.test.js +20 -0
- package/module/es5/tests/unit/String/fromBase64.test.d.ts +1 -0
- package/module/es5/tests/unit/String/fromBase64.test.js +26 -0
- package/module/es5/tests/unit/String/hasNoLetters.test.d.ts +1 -0
- package/module/es5/tests/unit/String/hasNoLetters.test.js +33 -0
- package/module/es5/tests/unit/String/padEnd.test.d.ts +1 -0
- package/module/es5/tests/unit/String/padEnd.test.js +22 -0
- package/module/es5/tests/unit/String/padStart.test.d.ts +1 -0
- package/module/es5/tests/unit/String/padStart.test.js +27 -0
- package/module/es5/tests/unit/String/randomString.test.d.ts +1 -0
- package/module/es5/tests/unit/String/randomString.test.js +21 -0
- package/module/es5/tests/unit/String/randomStringInitialization.test.d.ts +1 -0
- package/module/es5/tests/unit/String/randomStringInitialization.test.js +25 -0
- package/module/es5/tests/unit/String/reverseString.test.d.ts +1 -0
- package/module/es5/tests/unit/String/reverseString.test.js +37 -0
- package/module/es5/tests/unit/String/toBase64.test.d.ts +1 -0
- package/module/es5/tests/unit/String/toBase64.test.js +20 -0
- package/module/es5/tests/unit/String/toHalfWidth.test.d.ts +1 -0
- package/module/es5/tests/unit/String/toHalfWidth.test.js +16 -0
- package/module/es5/tests/unit/String/trimCharacters.test.d.ts +1 -0
- package/module/es5/tests/unit/String/trimCharacters.test.js +17 -0
- package/module/es5/tests/unit/String/trimEndCharacters.test.d.ts +1 -0
- package/module/es5/tests/unit/String/trimEndCharacters.test.js +23 -0
- package/module/es5/tests/unit/String/trimStartCharacters.test.d.ts +1 -0
- package/module/es5/tests/unit/String/trimStartCharacters.test.js +20 -0
- package/module/es5/tests/unit/Time/convertTime.test.d.ts +1 -0
- package/module/es5/tests/unit/Time/convertTime.test.js +43 -0
- package/module/es5/tests/unit/Tool/createPipeline.test.d.ts +1 -0
- package/module/es5/tests/unit/Tool/createPipeline.test.js +184 -0
- package/module/es5/tests/unit/Tool/parseJson.test.d.ts +1 -0
- package/module/es5/tests/unit/Tool/parseJson.test.js +46 -0
- package/module/es5/tests/unit/UA/parseUserAgent.test.d.ts +1 -0
- package/module/es5/tests/unit/UA/parseUserAgent.test.js +95 -0
- package/module/es5/tests/unit/Validate/array/core.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/array/core.test.js +57 -0
- package/module/es5/tests/unit/Validate/boolean/core.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/boolean/core.test.js +29 -0
- package/module/es5/tests/unit/Validate/isArray.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/isArray.test.js +25 -0
- package/module/es5/tests/unit/Validate/isDouble.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/isDouble.test.js +30 -0
- package/module/es5/tests/unit/Validate/isNotEmpty.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/isNotEmpty.test.js +43 -0
- package/module/es5/tests/unit/Validate/isNumber.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/isNumber.test.js +39 -0
- package/module/es5/tests/unit/Validate/isObject.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/isObject.test.js +48 -0
- package/module/es5/tests/unit/Validate/isPerfectSquare.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/isPerfectSquare.test.js +22 -0
- package/module/es5/tests/unit/Validate/isPrimeNumber.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/isPrimeNumber.test.js +41 -0
- package/module/es5/tests/unit/Validate/isValueNaN.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/isValueNaN.test.js +15 -0
- package/module/es5/tests/unit/Validate/number/core.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/number/core.test.js +36 -0
- package/module/es5/tests/unit/Validate/number/double.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/number/double.test.js +23 -0
- package/module/es5/tests/unit/Validate/number/even.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/number/even.test.js +23 -0
- package/module/es5/tests/unit/Validate/number/maxValue.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/number/maxValue.test.js +20 -0
- package/module/es5/tests/unit/Validate/number/minValue.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/number/minValue.test.js +20 -0
- package/module/es5/tests/unit/Validate/number/odd.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/number/odd.test.js +23 -0
- package/module/es5/tests/unit/Validate/number/prime.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/number/prime.test.js +25 -0
- package/module/es5/tests/unit/Validate/object/core.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/object/core.test.js +79 -0
- package/module/es5/tests/unit/Validate/string/core.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/string/core.test.js +27 -0
- package/module/es5/tests/unit/Validate/string/email.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/string/email.test.js +21 -0
- package/module/es5/tests/unit/Validate/string/length.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/string/length.test.js +18 -0
- package/module/es5/tests/unit/Validate/string/maxLength.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/string/maxLength.test.js +18 -0
- package/module/es5/tests/unit/Validate/string/minLength.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/string/minLength.test.js +18 -0
- package/module/es5/tests/unit/Validate/string/numberString.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/string/numberString.test.js +22 -0
- package/module/es5/tests/unit/Validate/string/regexMatch.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/string/regexMatch.test.js +29 -0
- package/module/es5/tests/unit/Validate/string/uuid.test.d.ts +1 -0
- package/module/es5/tests/unit/Validate/string/uuid.test.js +72 -0
- package/module/es5/tests/unit/types/arrayType.test.d.ts +1 -0
- package/module/es5/tests/unit/types/arrayType.test.js +11 -0
- package/module/es5/tests/unit/types/clockType.test.d.ts +1 -0
- package/module/es5/tests/unit/types/clockType.test.js +37 -0
- package/module/es5/tsconfig.tsbuildinfo +1 -0
- package/module/es5/types/array/chunk.d.ts +4 -0
- package/module/es5/types/array/chunk.js +5 -0
- package/module/es5/types/array/index.d.ts +2 -0
- package/module/es5/types/array/index.js +27 -0
- package/module/es5/types/array/zip.d.ts +3 -0
- package/module/es5/types/array/zip.js +5 -0
- package/module/es5/types/clock/hoursAm.d.ts +2 -0
- package/module/es5/types/clock/hoursAm.js +5 -0
- package/module/es5/types/clock/hoursAmInt.d.ts +2 -0
- package/module/es5/types/clock/hoursAmInt.js +5 -0
- package/module/es5/types/clock/hoursPm.d.ts +2 -0
- package/module/es5/types/clock/hoursPm.js +5 -0
- package/module/es5/types/clock/hoursPmInt.d.ts +1 -0
- package/module/es5/types/clock/hoursPmInt.js +5 -0
- package/module/es5/types/clock/hoursType.d.ts +3 -0
- package/module/es5/types/clock/hoursType.js +5 -0
- package/module/es5/types/clock/hoursTypeInt.d.ts +3 -0
- package/module/es5/types/clock/hoursTypeInt.js +5 -0
- package/module/es5/types/clock/index.d.ts +12 -0
- package/module/es5/types/clock/index.js +137 -0
- package/module/es5/types/clock/millisecondsType.d.ts +4 -0
- package/module/es5/types/clock/millisecondsType.js +5 -0
- package/module/es5/types/clock/millisecondsTypeInt.d.ts +4 -0
- package/module/es5/types/clock/millisecondsTypeInt.js +5 -0
- package/module/es5/types/clock/minutesType.d.ts +7 -0
- package/module/es5/types/clock/minutesType.js +5 -0
- package/module/es5/types/clock/minutesTypeInt.d.ts +7 -0
- package/module/es5/types/clock/minutesTypeInt.js +5 -0
- package/module/es5/types/clock/secondsType.d.ts +2 -0
- package/module/es5/types/clock/secondsType.js +5 -0
- package/module/es5/types/clock/secondsTypeInt.d.ts +2 -0
- package/module/es5/types/clock/secondsTypeInt.js +5 -0
- package/module/es5/types/date/convertMonTypeNoZero.d.ts +1 -0
- package/module/es5/types/date/convertMonTypeNoZero.js +5 -0
- package/module/es5/types/date/convertMonTypeZero.d.ts +1 -0
- package/module/es5/types/date/convertMonTypeZero.js +5 -0
- package/module/es5/types/date/dateType.d.ts +6 -0
- package/module/es5/types/date/dateType.js +5 -0
- package/module/es5/types/date/dayType.d.ts +2 -0
- package/module/es5/types/date/dayType.js +5 -0
- package/module/es5/types/date/dayTypeInt.d.ts +2 -0
- package/module/es5/types/date/dayTypeInt.js +5 -0
- package/module/es5/types/date/index.d.ts +13 -0
- package/module/es5/types/date/index.js +148 -0
- package/module/es5/types/date/monType.d.ts +3 -0
- package/module/es5/types/date/monType.js +5 -0
- package/module/es5/types/date/monTypeInt.d.ts +1 -0
- package/module/es5/types/date/monTypeInt.js +5 -0
- package/module/es5/types/date/monTypeNoZero.d.ts +1 -0
- package/module/es5/types/date/monTypeNoZero.js +5 -0
- package/module/es5/types/date/monTypeZero.d.ts +1 -0
- package/module/es5/types/date/monTypeZero.js +5 -0
- package/module/es5/types/date/monthsWith31Days.d.ts +2 -0
- package/module/es5/types/date/monthsWith31Days.js +5 -0
- package/module/es5/types/date/monthsWith31DaysInt.d.ts +1 -0
- package/module/es5/types/date/monthsWith31DaysInt.js +5 -0
- package/module/es5/types/date/monthsWithout31Days.d.ts +2 -0
- package/module/es5/types/date/monthsWithout31Days.js +5 -0
- package/module/es5/types/date/monthsWithout31DaysInt.d.ts +1 -0
- package/module/es5/types/date/monthsWithout31DaysInt.js +5 -0
- package/module/es5/types/index.d.ts +10 -0
- package/module/es5/types/index.js +115 -0
- package/module/es5/types/int/doubleDigit.d.ts +2 -0
- package/module/es5/types/int/doubleDigit.js +5 -0
- package/module/es5/types/int/doubleDigitInt.d.ts +10 -0
- package/module/es5/types/int/doubleDigitInt.js +5 -0
- package/module/es5/types/int/fourDigit.d.ts +3 -0
- package/module/es5/types/int/fourDigit.js +5 -0
- package/module/es5/types/int/index.d.ts +108 -0
- package/module/es5/types/int/index.js +1193 -0
- package/module/es5/types/int/int.d.ts +3 -0
- package/module/es5/types/int/int.js +5 -0
- package/module/es5/types/int/intEven.d.ts +1 -0
- package/module/es5/types/int/intEven.js +5 -0
- package/module/es5/types/int/intOdd.d.ts +1 -0
- package/module/es5/types/int/intOdd.js +5 -0
- package/module/es5/types/int/intWithoutZero.d.ts +3 -0
- package/module/es5/types/int/intWithoutZero.js +5 -0
- package/module/es5/types/int/tripleDigit.d.ts +2 -0
- package/module/es5/types/int/tripleDigit.js +5 -0
- package/module/es5/types/int/tripleDigitInt.d.ts +91 -0
- package/module/es5/types/int/tripleDigitInt.js +5 -0
- package/module/es5/types/int/upToEightHundred.d.ts +1 -0
- package/module/es5/types/int/upToEightHundred.js +5 -0
- package/module/es5/types/int/upToEightHundredEighty.d.ts +1 -0
- package/module/es5/types/int/upToEightHundredEighty.js +5 -0
- package/module/es5/types/int/upToEightHundredFifty.d.ts +1 -0
- package/module/es5/types/int/upToEightHundredFifty.js +5 -0
- package/module/es5/types/int/upToEightHundredForty.d.ts +1 -0
- package/module/es5/types/int/upToEightHundredForty.js +5 -0
- package/module/es5/types/int/upToEightHundredNinety.d.ts +1 -0
- package/module/es5/types/int/upToEightHundredNinety.js +5 -0
- package/module/es5/types/int/upToEightHundredSeventy.d.ts +1 -0
- package/module/es5/types/int/upToEightHundredSeventy.js +5 -0
- package/module/es5/types/int/upToEightHundredSixty.d.ts +1 -0
- package/module/es5/types/int/upToEightHundredSixty.js +5 -0
- package/module/es5/types/int/upToEightHundredTen.d.ts +1 -0
- package/module/es5/types/int/upToEightHundredTen.js +5 -0
- package/module/es5/types/int/upToEightHundredThirty.d.ts +1 -0
- package/module/es5/types/int/upToEightHundredThirty.js +5 -0
- package/module/es5/types/int/upToEightHundredTwenty.d.ts +1 -0
- package/module/es5/types/int/upToEightHundredTwenty.js +5 -0
- package/module/es5/types/int/upToEighty.d.ts +1 -0
- package/module/es5/types/int/upToEighty.js +5 -0
- package/module/es5/types/int/upToFifty.d.ts +1 -0
- package/module/es5/types/int/upToFifty.js +5 -0
- package/module/es5/types/int/upToFiveHundred.d.ts +1 -0
- package/module/es5/types/int/upToFiveHundred.js +5 -0
- package/module/es5/types/int/upToFiveHundredEighty.d.ts +1 -0
- package/module/es5/types/int/upToFiveHundredEighty.js +5 -0
- package/module/es5/types/int/upToFiveHundredFifty.d.ts +1 -0
- package/module/es5/types/int/upToFiveHundredFifty.js +5 -0
- package/module/es5/types/int/upToFiveHundredForty.d.ts +1 -0
- package/module/es5/types/int/upToFiveHundredForty.js +5 -0
- package/module/es5/types/int/upToFiveHundredNinety.d.ts +1 -0
- package/module/es5/types/int/upToFiveHundredNinety.js +5 -0
- package/module/es5/types/int/upToFiveHundredSeventy.d.ts +1 -0
- package/module/es5/types/int/upToFiveHundredSeventy.js +5 -0
- package/module/es5/types/int/upToFiveHundredSixty.d.ts +1 -0
- package/module/es5/types/int/upToFiveHundredSixty.js +5 -0
- package/module/es5/types/int/upToFiveHundredTen.d.ts +1 -0
- package/module/es5/types/int/upToFiveHundredTen.js +5 -0
- package/module/es5/types/int/upToFiveHundredThirty.d.ts +1 -0
- package/module/es5/types/int/upToFiveHundredThirty.js +5 -0
- package/module/es5/types/int/upToFiveHundredTwenty.d.ts +1 -0
- package/module/es5/types/int/upToFiveHundredTwenty.js +5 -0
- package/module/es5/types/int/upToForty.d.ts +1 -0
- package/module/es5/types/int/upToForty.js +5 -0
- package/module/es5/types/int/upToFourHundred.d.ts +1 -0
- package/module/es5/types/int/upToFourHundred.js +5 -0
- package/module/es5/types/int/upToFourHundredEighty.d.ts +1 -0
- package/module/es5/types/int/upToFourHundredEighty.js +5 -0
- package/module/es5/types/int/upToFourHundredFifty.d.ts +1 -0
- package/module/es5/types/int/upToFourHundredFifty.js +5 -0
- package/module/es5/types/int/upToFourHundredForty.d.ts +1 -0
- package/module/es5/types/int/upToFourHundredForty.js +5 -0
- package/module/es5/types/int/upToFourHundredNinety.d.ts +1 -0
- package/module/es5/types/int/upToFourHundredNinety.js +5 -0
- package/module/es5/types/int/upToFourHundredSeventy.d.ts +1 -0
- package/module/es5/types/int/upToFourHundredSeventy.js +5 -0
- package/module/es5/types/int/upToFourHundredSixty.d.ts +1 -0
- package/module/es5/types/int/upToFourHundredSixty.js +5 -0
- package/module/es5/types/int/upToFourHundredTen.d.ts +1 -0
- package/module/es5/types/int/upToFourHundredTen.js +5 -0
- package/module/es5/types/int/upToFourHundredThirty.d.ts +1 -0
- package/module/es5/types/int/upToFourHundredThirty.js +5 -0
- package/module/es5/types/int/upToFourHundredTwenty.d.ts +1 -0
- package/module/es5/types/int/upToFourHundredTwenty.js +5 -0
- package/module/es5/types/int/upToHundredEighty.d.ts +1 -0
- package/module/es5/types/int/upToHundredEighty.js +5 -0
- package/module/es5/types/int/upToHundredFifty.d.ts +1 -0
- package/module/es5/types/int/upToHundredFifty.js +5 -0
- package/module/es5/types/int/upToHundredForty.d.ts +1 -0
- package/module/es5/types/int/upToHundredForty.js +5 -0
- package/module/es5/types/int/upToHundredNinety.d.ts +1 -0
- package/module/es5/types/int/upToHundredNinety.js +5 -0
- package/module/es5/types/int/upToHundredSeventy.d.ts +1 -0
- package/module/es5/types/int/upToHundredSeventy.js +5 -0
- package/module/es5/types/int/upToHundredSixty.d.ts +1 -0
- package/module/es5/types/int/upToHundredSixty.js +5 -0
- package/module/es5/types/int/upToHundredTen.d.ts +1 -0
- package/module/es5/types/int/upToHundredTen.js +5 -0
- package/module/es5/types/int/upToHundredThirty.d.ts +1 -0
- package/module/es5/types/int/upToHundredThirty.js +5 -0
- package/module/es5/types/int/upToHundredTwenty.d.ts +1 -0
- package/module/es5/types/int/upToHundredTwenty.js +5 -0
- package/module/es5/types/int/upToNineHundred.d.ts +1 -0
- package/module/es5/types/int/upToNineHundred.js +5 -0
- package/module/es5/types/int/upToNineHundredEighty.d.ts +1 -0
- package/module/es5/types/int/upToNineHundredEighty.js +5 -0
- package/module/es5/types/int/upToNineHundredFifty.d.ts +1 -0
- package/module/es5/types/int/upToNineHundredFifty.js +5 -0
- package/module/es5/types/int/upToNineHundredForty.d.ts +1 -0
- package/module/es5/types/int/upToNineHundredForty.js +5 -0
- package/module/es5/types/int/upToNineHundredNinety.d.ts +1 -0
- package/module/es5/types/int/upToNineHundredNinety.js +5 -0
- package/module/es5/types/int/upToNineHundredNinetyNine.d.ts +1 -0
- package/module/es5/types/int/upToNineHundredNinetyNine.js +5 -0
- package/module/es5/types/int/upToNineHundredSeventy.d.ts +1 -0
- package/module/es5/types/int/upToNineHundredSeventy.js +5 -0
- package/module/es5/types/int/upToNineHundredSixty.d.ts +1 -0
- package/module/es5/types/int/upToNineHundredSixty.js +5 -0
- package/module/es5/types/int/upToNineHundredTen.d.ts +1 -0
- package/module/es5/types/int/upToNineHundredTen.js +5 -0
- package/module/es5/types/int/upToNineHundredThirty.d.ts +1 -0
- package/module/es5/types/int/upToNineHundredThirty.js +5 -0
- package/module/es5/types/int/upToNineHundredTwenty.d.ts +1 -0
- package/module/es5/types/int/upToNineHundredTwenty.js +5 -0
- package/module/es5/types/int/upToNinety.d.ts +1 -0
- package/module/es5/types/int/upToNinety.js +5 -0
- package/module/es5/types/int/upToNinetyNine.d.ts +1 -0
- package/module/es5/types/int/upToNinetyNine.js +5 -0
- package/module/es5/types/int/upToSevenHundred.d.ts +1 -0
- package/module/es5/types/int/upToSevenHundred.js +5 -0
- package/module/es5/types/int/upToSevenHundredEighty.d.ts +1 -0
- package/module/es5/types/int/upToSevenHundredEighty.js +5 -0
- package/module/es5/types/int/upToSevenHundredFifty.d.ts +1 -0
- package/module/es5/types/int/upToSevenHundredFifty.js +5 -0
- package/module/es5/types/int/upToSevenHundredForty.d.ts +1 -0
- package/module/es5/types/int/upToSevenHundredForty.js +5 -0
- package/module/es5/types/int/upToSevenHundredNinety.d.ts +1 -0
- package/module/es5/types/int/upToSevenHundredNinety.js +5 -0
- package/module/es5/types/int/upToSevenHundredSeventy.d.ts +1 -0
- package/module/es5/types/int/upToSevenHundredSeventy.js +5 -0
- package/module/es5/types/int/upToSevenHundredSixty.d.ts +1 -0
- package/module/es5/types/int/upToSevenHundredSixty.js +5 -0
- package/module/es5/types/int/upToSevenHundredTen.d.ts +1 -0
- package/module/es5/types/int/upToSevenHundredTen.js +5 -0
- package/module/es5/types/int/upToSevenHundredThirty.d.ts +1 -0
- package/module/es5/types/int/upToSevenHundredThirty.js +5 -0
- package/module/es5/types/int/upToSevenHundredTwenty.d.ts +1 -0
- package/module/es5/types/int/upToSevenHundredTwenty.js +5 -0
- package/module/es5/types/int/upToSeventy.d.ts +1 -0
- package/module/es5/types/int/upToSeventy.js +5 -0
- package/module/es5/types/int/upToSixHundred.d.ts +1 -0
- package/module/es5/types/int/upToSixHundred.js +5 -0
- package/module/es5/types/int/upToSixHundredEighty.d.ts +1 -0
- package/module/es5/types/int/upToSixHundredEighty.js +5 -0
- package/module/es5/types/int/upToSixHundredFifty.d.ts +1 -0
- package/module/es5/types/int/upToSixHundredFifty.js +5 -0
- package/module/es5/types/int/upToSixHundredForty.d.ts +1 -0
- package/module/es5/types/int/upToSixHundredForty.js +5 -0
- package/module/es5/types/int/upToSixHundredNinety.d.ts +1 -0
- package/module/es5/types/int/upToSixHundredNinety.js +5 -0
- package/module/es5/types/int/upToSixHundredSeventy.d.ts +1 -0
- package/module/es5/types/int/upToSixHundredSeventy.js +5 -0
- package/module/es5/types/int/upToSixHundredSixty.d.ts +1 -0
- package/module/es5/types/int/upToSixHundredSixty.js +5 -0
- package/module/es5/types/int/upToSixHundredTen.d.ts +1 -0
- package/module/es5/types/int/upToSixHundredTen.js +5 -0
- package/module/es5/types/int/upToSixHundredThirty.d.ts +1 -0
- package/module/es5/types/int/upToSixHundredThirty.js +5 -0
- package/module/es5/types/int/upToSixHundredTwenty.d.ts +1 -0
- package/module/es5/types/int/upToSixHundredTwenty.js +5 -0
- package/module/es5/types/int/upToSixty.d.ts +1 -0
- package/module/es5/types/int/upToSixty.js +5 -0
- package/module/es5/types/int/upToThirty.d.ts +1 -0
- package/module/es5/types/int/upToThirty.js +5 -0
- package/module/es5/types/int/upToThreeHundred.d.ts +1 -0
- package/module/es5/types/int/upToThreeHundred.js +5 -0
- package/module/es5/types/int/upToThreeHundredEighty.d.ts +1 -0
- package/module/es5/types/int/upToThreeHundredEighty.js +5 -0
- package/module/es5/types/int/upToThreeHundredFifty.d.ts +1 -0
- package/module/es5/types/int/upToThreeHundredFifty.js +5 -0
- package/module/es5/types/int/upToThreeHundredForty.d.ts +1 -0
- package/module/es5/types/int/upToThreeHundredForty.js +5 -0
- package/module/es5/types/int/upToThreeHundredNinety.d.ts +1 -0
- package/module/es5/types/int/upToThreeHundredNinety.js +5 -0
- package/module/es5/types/int/upToThreeHundredSeventy.d.ts +1 -0
- package/module/es5/types/int/upToThreeHundredSeventy.js +5 -0
- package/module/es5/types/int/upToThreeHundredSixty.d.ts +1 -0
- package/module/es5/types/int/upToThreeHundredSixty.js +5 -0
- package/module/es5/types/int/upToThreeHundredTen.d.ts +1 -0
- package/module/es5/types/int/upToThreeHundredTen.js +5 -0
- package/module/es5/types/int/upToThreeHundredThirty.d.ts +1 -0
- package/module/es5/types/int/upToThreeHundredThirty.js +5 -0
- package/module/es5/types/int/upToThreeHundredTwenty.d.ts +1 -0
- package/module/es5/types/int/upToThreeHundredTwenty.js +5 -0
- package/module/es5/types/int/upToTwenty.d.ts +1 -0
- package/module/es5/types/int/upToTwenty.js +5 -0
- package/module/es5/types/int/upToTwoHundred.d.ts +1 -0
- package/module/es5/types/int/upToTwoHundred.js +5 -0
- package/module/es5/types/int/upToTwoHundredEighty.d.ts +1 -0
- package/module/es5/types/int/upToTwoHundredEighty.js +5 -0
- package/module/es5/types/int/upToTwoHundredFifty.d.ts +1 -0
- package/module/es5/types/int/upToTwoHundredFifty.js +5 -0
- package/module/es5/types/int/upToTwoHundredForty.d.ts +1 -0
- package/module/es5/types/int/upToTwoHundredForty.js +5 -0
- package/module/es5/types/int/upToTwoHundredNinety.d.ts +1 -0
- package/module/es5/types/int/upToTwoHundredNinety.js +5 -0
- package/module/es5/types/int/upToTwoHundredSeventy.d.ts +1 -0
- package/module/es5/types/int/upToTwoHundredSeventy.js +5 -0
- package/module/es5/types/int/upToTwoHundredSixty.d.ts +1 -0
- package/module/es5/types/int/upToTwoHundredSixty.js +5 -0
- package/module/es5/types/int/upToTwoHundredTen.d.ts +1 -0
- package/module/es5/types/int/upToTwoHundredTen.js +5 -0
- package/module/es5/types/int/upToTwoHundredThirty.d.ts +1 -0
- package/module/es5/types/int/upToTwoHundredThirty.js +5 -0
- package/module/es5/types/int/upToTwoHundredTwenty.d.ts +1 -0
- package/module/es5/types/int/upToTwoHundredTwenty.js +5 -0
- package/module/es5/types/joke/index.d.ts +1 -0
- package/module/es5/types/joke/index.js +16 -0
- package/module/es5/types/joke/threeStepsForwardTwoStepsBack.d.ts +4 -0
- package/module/es5/types/joke/threeStepsForwardTwoStepsBack.js +5 -0
- package/module/es5/types/logic/and.d.ts +2 -0
- package/module/es5/types/logic/and.js +5 -0
- package/module/es5/types/logic/arrayReverse.d.ts +1 -0
- package/module/es5/types/logic/arrayReverse.js +5 -0
- package/module/es5/types/logic/arrayToUnion.d.ts +1 -0
- package/module/es5/types/logic/arrayToUnion.js +5 -0
- package/module/es5/types/logic/bGreaterThanA.d.ts +4 -0
- package/module/es5/types/logic/bGreaterThanA.js +5 -0
- package/module/es5/types/logic/binary1bitAnd.js +5 -0
- package/module/es5/types/logic/binary1bitNand.js +5 -0
- package/module/es5/types/logic/binary1bitNor.js +5 -0
- package/module/es5/types/logic/binary1bitOr.js +5 -0
- package/module/es5/types/logic/binary1bitXnor.js +5 -0
- package/module/es5/types/logic/binary1bitXor.js +5 -0
- package/module/es5/types/logic/binaryAbs.d.ts +2 -0
- package/module/es5/types/logic/binaryAbs.js +5 -0
- package/module/es5/types/logic/binaryAdd.d.ts +4 -0
- package/module/es5/types/logic/binaryAdd.js +5 -0
- package/module/es5/types/logic/binaryAnd.js +5 -0
- package/module/es5/types/logic/binaryComplement.d.ts +4 -0
- package/module/es5/types/logic/binaryComplement.js +5 -0
- package/module/es5/types/logic/binaryFullAdder.d.ts +9 -0
- package/module/es5/types/logic/binaryFullAdder.js +5 -0
- package/module/es5/types/logic/binaryHalfAdder.d.ts +4 -0
- package/module/es5/types/logic/binaryHalfAdder.js +5 -0
- package/module/es5/types/logic/binaryNComplement.d.ts +7 -0
- package/module/es5/types/logic/binaryNComplement.js +5 -0
- package/module/es5/types/logic/binaryNand.js +5 -0
- package/module/es5/types/logic/binaryNor.js +5 -0
- package/module/es5/types/logic/binaryNot.js +5 -0
- package/module/es5/types/logic/binaryOr.js +5 -0
- package/module/es5/types/logic/binaryToDecimal.d.ts +6 -0
- package/module/es5/types/logic/binaryToDecimal.js +5 -0
- package/module/es5/types/logic/binaryToHex.d.ts +5 -0
- package/module/es5/types/logic/binaryToHex.js +5 -0
- package/module/es5/types/logic/binaryXnor.js +5 -0
- package/module/es5/types/logic/binaryXor.js +5 -0
- package/module/es5/types/logic/capitalize.d.ts +1 -0
- package/module/es5/types/logic/capitalize.js +5 -0
- package/module/{types/logic/decimal1biteTobinary.d.ts → es5/types/logic/decimal1byteTobinary.d.ts} +1 -1
- package/module/es5/types/logic/decimal1byteTobinary.js +5 -0
- package/module/es5/types/logic/decimal4bitToHex.d.ts +1 -0
- package/module/es5/types/logic/decimal4bitToHex.js +5 -0
- package/module/es5/types/logic/decimal4bitTobinary.d.ts +1 -0
- package/module/es5/types/logic/decimal4bitTobinary.js +5 -0
- package/module/es5/types/logic/equal.d.ts +1 -0
- package/module/es5/types/logic/equal.js +5 -0
- package/module/es5/types/logic/first.d.ts +1 -0
- package/module/es5/types/logic/first.js +5 -0
- package/module/es5/types/logic/first8Chars.d.ts +11 -0
- package/module/es5/types/logic/first8Chars.js +5 -0
- package/module/es5/types/logic/firstNChars.d.ts +1 -0
- package/module/es5/types/logic/firstNChars.js +5 -0
- package/module/es5/types/logic/hex4bitToDecimal.d.ts +1 -0
- package/module/es5/types/logic/hex4bitToDecimal.js +5 -0
- package/module/es5/types/logic/hexToBinary.d.ts +5 -0
- package/module/es5/types/logic/hexToBinary.js +5 -0
- package/module/es5/types/logic/if.d.ts +1 -0
- package/module/es5/types/logic/if.js +5 -0
- package/module/es5/types/logic/imply.d.ts +3 -0
- package/module/es5/types/logic/imply.js +5 -0
- package/module/es5/types/logic/index.d.ts +59 -0
- package/module/es5/types/logic/index.js +654 -0
- package/module/es5/types/logic/isAny.d.ts +1 -0
- package/module/es5/types/logic/isAny.js +5 -0
- package/module/es5/types/logic/isBoolean.d.ts +1 -0
- package/module/es5/types/logic/isBoolean.js +5 -0
- package/module/es5/types/logic/isFloat.d.ts +1 -0
- package/module/es5/types/logic/isFloat.js +5 -0
- package/module/es5/types/logic/length.d.ts +3 -0
- package/module/es5/types/logic/length.js +5 -0
- package/module/es5/types/logic/lengthOfString.d.ts +2 -0
- package/module/es5/types/logic/lengthOfString.js +5 -0
- package/module/es5/types/logic/nand.d.ts +3 -0
- package/module/es5/types/logic/nand.js +5 -0
- package/module/es5/types/logic/nor.d.ts +3 -0
- package/module/es5/types/logic/nor.js +5 -0
- package/module/es5/types/logic/not.d.ts +2 -0
- package/module/es5/types/logic/not.js +5 -0
- package/module/es5/types/logic/or.d.ts +2 -0
- package/module/es5/types/logic/or.js +5 -0
- package/module/es5/types/logic/pop.d.ts +1 -0
- package/module/es5/types/logic/pop.js +5 -0
- package/module/es5/types/logic/popString.d.ts +1 -0
- package/module/es5/types/logic/popString.js +5 -0
- package/module/es5/types/logic/shift.d.ts +1 -0
- package/module/es5/types/logic/shift.js +5 -0
- package/module/es5/types/logic/shiftString.d.ts +1 -0
- package/module/es5/types/logic/shiftString.js +5 -0
- package/module/es5/types/logic/slice.d.ts +2 -0
- package/module/es5/types/logic/slice.js +5 -0
- package/module/es5/types/logic/stringReverse.d.ts +1 -0
- package/module/es5/types/logic/stringReverse.js +5 -0
- package/module/es5/types/logic/stringToArray.d.ts +1 -0
- package/module/es5/types/logic/stringToArray.js +5 -0
- package/module/es5/types/logic/stringToUnion.d.ts +1 -0
- package/module/es5/types/logic/stringToUnion.js +5 -0
- package/module/es5/types/logic/toNumber.d.ts +1 -0
- package/module/es5/types/logic/toNumber.js +5 -0
- package/module/es5/types/logic/xnor.d.ts +3 -0
- package/module/es5/types/logic/xnor.js +5 -0
- package/module/es5/types/logic/xor.d.ts +2 -0
- package/module/es5/types/logic/xor.js +5 -0
- package/module/es5/types/logic/zeroAorB.d.ts +2 -0
- package/module/es5/types/logic/zeroAorB.js +5 -0
- package/module/es5/types/logic/zeroString.d.ts +2 -0
- package/module/es5/types/logic/zeroString.js +5 -0
- package/module/es5/types/math/add.d.ts +4 -0
- package/module/es5/types/math/add.js +5 -0
- package/module/es5/types/math/divide.d.ts +6 -0
- package/module/es5/types/math/divide.js +5 -0
- package/module/es5/types/math/index.d.ts +6 -0
- package/module/es5/types/math/index.js +71 -0
- package/module/es5/types/math/modulo.d.ts +3 -0
- package/module/es5/types/math/modulo.js +5 -0
- package/module/es5/types/math/multiply.d.ts +5 -0
- package/module/es5/types/math/multiply.js +5 -0
- package/module/es5/types/math/numberToArray.d.ts +1 -0
- package/module/es5/types/math/numberToArray.js +5 -0
- package/module/es5/types/math/subtract.d.ts +4 -0
- package/module/es5/types/math/subtract.js +5 -0
- package/module/es5/types/object/index.d.ts +1 -0
- package/module/es5/types/object/index.js +16 -0
- package/module/es5/types/object/pickDeep.d.ts +1 -0
- package/module/es5/types/object/pickDeep.js +5 -0
- package/module/es5/types/object/pickDeepKey.d.ts +1 -0
- package/module/es5/types/object/pickDeepKey.js +5 -0
- package/module/es5/types/time/index.d.ts +1 -0
- package/module/es5/types/time/index.js +16 -0
- package/module/es5/types/time/timeUnit.d.ts +4 -0
- package/module/es5/types/time/timeUnit.js +5 -0
- package/module/es5/types/ua/index.d.ts +4 -0
- package/module/es5/types/ua/index.js +49 -0
- package/module/es5/types/ua/simplifiedUserAgentInfo.d.ts +8 -0
- package/module/es5/types/ua/simplifiedUserAgentInfo.js +5 -0
- package/module/es5/types/ua/simplifiedUserAgentInfoBrowser.d.ts +1 -0
- package/module/es5/types/ua/simplifiedUserAgentInfoBrowser.js +5 -0
- package/module/es5/types/ua/simplifiedUserAgentInfoDevice.d.ts +1 -0
- package/module/es5/types/ua/simplifiedUserAgentInfoDevice.js +5 -0
- package/module/es5/types/ua/simplifiedUserAgentInfoOs.d.ts +1 -0
- package/module/es5/types/ua/simplifiedUserAgentInfoOs.js +5 -0
- package/module/index.d.ts +1 -0
- package/module/index.js +1 -0
- package/module/index.js.map +1 -1
- package/module/types/index.d.ts +3 -0
- package/module/types/index.js +3 -0
- package/module/types/index.js.map +1 -1
- package/module/types/logic/binary1bitAnd.d.ts +2 -0
- package/module/types/logic/binary1bitNand.d.ts +2 -0
- package/module/types/logic/binary1bitNor.d.ts +3 -0
- package/module/types/logic/binary1bitOr.d.ts +2 -0
- package/module/types/logic/binary1bitXnor.d.ts +2 -0
- package/module/types/logic/binary1bitXor.d.ts +2 -0
- package/module/types/logic/binaryAnd.d.ts +2 -0
- package/module/types/logic/binaryNand.d.ts +2 -0
- package/module/types/logic/binaryNor.d.ts +2 -0
- package/module/types/logic/binaryNot.d.ts +2 -0
- package/module/types/logic/binaryOr.d.ts +2 -0
- package/module/types/logic/binaryXnor.d.ts +2 -0
- package/module/types/logic/binaryXor.d.ts +2 -0
- package/module/types/object/index.d.ts +1 -0
- package/module/types/object/index.js +2 -0
- package/module/types/object/index.js.map +1 -0
- package/module/types/object/pickDeep.d.ts +1 -0
- package/module/types/object/pickDeep.js +2 -0
- package/module/types/object/pickDeep.js.map +1 -0
- package/module/types/object/pickDeepKey.d.ts +1 -0
- package/module/types/object/pickDeepKey.js +2 -0
- package/module/types/object/pickDeepKey.js.map +1 -0
- package/module/types/time/index.d.ts +1 -0
- package/module/types/time/index.js +2 -0
- package/module/types/time/index.js.map +1 -0
- package/module/types/time/timeUnit.d.ts +4 -0
- package/module/types/time/timeUnit.js +2 -0
- package/module/types/time/timeUnit.js.map +1 -0
- package/module/types/ua/index.d.ts +4 -0
- package/module/types/ua/index.js +5 -0
- package/module/types/ua/index.js.map +1 -0
- package/module/types/ua/simplifiedUserAgentInfo.d.ts +6 -3
- package/module/types/ua/simplifiedUserAgentInfoBrowser.d.ts +1 -0
- package/module/types/ua/simplifiedUserAgentInfoBrowser.js +2 -0
- package/module/types/ua/simplifiedUserAgentInfoBrowser.js.map +1 -0
- package/module/types/ua/simplifiedUserAgentInfoDevice.d.ts +1 -0
- package/module/types/ua/simplifiedUserAgentInfoDevice.js +2 -0
- package/module/types/ua/simplifiedUserAgentInfoDevice.js.map +1 -0
- package/module/types/ua/simplifiedUserAgentInfoOs.d.ts +1 -0
- package/module/types/ua/simplifiedUserAgentInfoOs.js +2 -0
- package/module/types/ua/simplifiedUserAgentInfoOs.js.map +1 -0
- package/package.json +26 -18
- package/module/UA/extractOSFromUserAgent.d.ts +0 -2
- package/module/types/logic/decimal1biteTobinary.js +0 -2
- package/module/types/logic/decimal1biteTobinary.js.map +0 -1
- /package/module/UA/{extractOSFromUserAgent.js → extractOsFromUserAgent.js} +0 -0
- /package/module/{types/logic/binary1bitAND.d.ts → es5/types/logic/binary1bitAnd.d.ts} +0 -0
- /package/module/{types/logic/binary1bitNAND.d.ts → es5/types/logic/binary1bitNand.d.ts} +0 -0
- /package/module/{types/logic/binary1bitNOR.d.ts → es5/types/logic/binary1bitNor.d.ts} +0 -0
- /package/module/{types/logic/binary1bitOR.d.ts → es5/types/logic/binary1bitOr.d.ts} +0 -0
- /package/module/{types/logic/binary1bitXNOR.d.ts → es5/types/logic/binary1bitXnor.d.ts} +0 -0
- /package/module/{types/logic/binary1bitXOR.d.ts → es5/types/logic/binary1bitXor.d.ts} +0 -0
- /package/module/{types/logic/binaryAND.d.ts → es5/types/logic/binaryAnd.d.ts} +0 -0
- /package/module/{types/logic/binaryNAND.d.ts → es5/types/logic/binaryNand.d.ts} +0 -0
- /package/module/{types/logic/binaryNOR.d.ts → es5/types/logic/binaryNor.d.ts} +0 -0
- /package/module/{types/logic/binaryNOT.d.ts → es5/types/logic/binaryNot.d.ts} +0 -0
- /package/module/{types/logic/binaryOR.d.ts → es5/types/logic/binaryOr.d.ts} +0 -0
- /package/module/{types/logic/binaryXNOR.d.ts → es5/types/logic/binaryXnor.d.ts} +0 -0
- /package/module/{types/logic/binaryXOR.d.ts → es5/types/logic/binaryXor.d.ts} +0 -0
- /package/module/types/logic/{binary1bitAND.js → binary1bitAnd.js} +0 -0
- /package/module/types/logic/{binary1bitAND.js.map → binary1bitAnd.js.map} +0 -0
- /package/module/types/logic/{binary1bitNAND.js → binary1bitNand.js} +0 -0
- /package/module/types/logic/{binary1bitNAND.js.map → binary1bitNand.js.map} +0 -0
- /package/module/types/logic/{binary1bitNOR.js → binary1bitNor.js} +0 -0
- /package/module/types/logic/{binary1bitNOR.js.map → binary1bitNor.js.map} +0 -0
- /package/module/types/logic/{binary1bitOR.js → binary1bitOr.js} +0 -0
- /package/module/types/logic/{binary1bitOR.js.map → binary1bitOr.js.map} +0 -0
- /package/module/types/logic/{binary1bitXNOR.js → binary1bitXnor.js} +0 -0
- /package/module/types/logic/{binary1bitXNOR.js.map → binary1bitXnor.js.map} +0 -0
- /package/module/types/logic/{binary1bitXOR.js → binary1bitXor.js} +0 -0
- /package/module/types/logic/{binary1bitXOR.js.map → binary1bitXor.js.map} +0 -0
- /package/module/types/logic/{binaryAND.js → binaryAnd.js} +0 -0
- /package/module/types/logic/{binaryAND.js.map → binaryAnd.js.map} +0 -0
- /package/module/types/logic/{binaryNAND.js → binaryNand.js} +0 -0
- /package/module/types/logic/{binaryNAND.js.map → binaryNand.js.map} +0 -0
- /package/module/types/logic/{binaryNOR.js → binaryNor.js} +0 -0
- /package/module/types/logic/{binaryNOR.js.map → binaryNor.js.map} +0 -0
- /package/module/types/logic/{binaryNOT.js → binaryNot.js} +0 -0
- /package/module/types/logic/{binaryNOT.js.map → binaryNot.js.map} +0 -0
- /package/module/types/logic/{binaryOR.js → binaryOr.js} +0 -0
- /package/module/types/logic/{binaryOR.js.map → binaryOr.js.map} +0 -0
- /package/module/types/logic/{binaryXNOR.js → binaryXnor.js} +0 -0
- /package/module/types/logic/{binaryXNOR.js.map → binaryXnor.js.map} +0 -0
- /package/module/types/logic/{binaryXOR.js → binaryXor.js} +0 -0
- /package/module/types/logic/{binaryXOR.js.map → binaryXor.js.map} +0 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.padEnd = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* 指定された長さに達するまで、文字列の末尾に指定された文字列を追加します。
|
|
9
|
+
*
|
|
10
|
+
* @param string_ - パディングを適用する元の文字列
|
|
11
|
+
* @param targetLength - パディング後の目標の長さ
|
|
12
|
+
* @param padString - パディングに使用する文字列
|
|
13
|
+
* @returns パディングが適用された後の文字列
|
|
14
|
+
*/
|
|
15
|
+
var padEnd = exports.padEnd = function padEnd(string_, targetLength, padString) {
|
|
16
|
+
if (padString === "") {
|
|
17
|
+
return string_;
|
|
18
|
+
}
|
|
19
|
+
var result = string_;
|
|
20
|
+
while (result.length < targetLength) {
|
|
21
|
+
result += padString.slice(0, targetLength - result.length);
|
|
22
|
+
}
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 指定された長さに達するまで、文字列の先頭に別の文字列を繰り返し追加します。
|
|
3
|
+
*
|
|
4
|
+
* @param string_ - パディングを追加する元の文字列。
|
|
5
|
+
* @param targetLength - パディングを含めた後の目標の文字列長。
|
|
6
|
+
* @param padString - 元の文字列の先頭に追加される文字列。
|
|
7
|
+
* @returns パディングが追加された後の文字列。
|
|
8
|
+
*/
|
|
9
|
+
export declare const padStart: (string_: string, targetLength: number, padString: string) => string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.padStart = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* 指定された長さに達するまで、文字列の先頭に別の文字列を繰り返し追加します。
|
|
9
|
+
*
|
|
10
|
+
* @param string_ - パディングを追加する元の文字列。
|
|
11
|
+
* @param targetLength - パディングを含めた後の目標の文字列長。
|
|
12
|
+
* @param padString - 元の文字列の先頭に追加される文字列。
|
|
13
|
+
* @returns パディングが追加された後の文字列。
|
|
14
|
+
*/
|
|
15
|
+
var padStart = exports.padStart = function padStart(string_, targetLength, padString) {
|
|
16
|
+
if (padString === "") {
|
|
17
|
+
throw new Error("padString cannot be empty");
|
|
18
|
+
}
|
|
19
|
+
var padding = "";
|
|
20
|
+
var paddingLength = targetLength - string_.length;
|
|
21
|
+
while (padding.length < paddingLength) {
|
|
22
|
+
padding += padString;
|
|
23
|
+
}
|
|
24
|
+
return padding.slice(0, paddingLength) + string_;
|
|
25
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.randomString = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* ランダムな文字列を生成します。
|
|
9
|
+
* @param char ランダムな文字列を生成するための文字列
|
|
10
|
+
* @param size ランダムな文字列の長さ
|
|
11
|
+
* @returns ランダムな文字列
|
|
12
|
+
*/
|
|
13
|
+
var randomString = exports.randomString = function randomString() {
|
|
14
|
+
var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 8;
|
|
15
|
+
var _char = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
16
|
+
var length = _char.length;
|
|
17
|
+
var id = "";
|
|
18
|
+
for (var index = 0; index < size; index++) {
|
|
19
|
+
id += _char[Math.trunc(Math.random() * length)];
|
|
20
|
+
}
|
|
21
|
+
return id;
|
|
22
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.randomStringInitialization = void 0;
|
|
7
|
+
var _randomString = require("./randomString");
|
|
8
|
+
/**
|
|
9
|
+
* ランダムな文字列を生成する関数を初期化します。
|
|
10
|
+
* @param char ランダムな文字列を生成するための文字列
|
|
11
|
+
* @returns ランダムな文字列を生成する関数 (size: number) => string
|
|
12
|
+
*/
|
|
13
|
+
var randomStringInitialization = exports.randomStringInitialization = function randomStringInitialization() {
|
|
14
|
+
var _char = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
15
|
+
return function (size) {
|
|
16
|
+
return (0, _randomString.randomString)(size, _char);
|
|
17
|
+
};
|
|
18
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.reverseString = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* 文字列を逆順にする
|
|
9
|
+
* @param {string} char
|
|
10
|
+
* @returns string
|
|
11
|
+
* @example reverseString("Hello"); // "olleH"
|
|
12
|
+
*/
|
|
13
|
+
var reverseString = exports.reverseString = function reverseString(_char) {
|
|
14
|
+
return _char.split("").reverse().join("");
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.toBase64 = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* 文字列をBase64に変換する
|
|
9
|
+
* @param char Base64に変換する文字列
|
|
10
|
+
* @returns Base64に変換された文字列
|
|
11
|
+
*/
|
|
12
|
+
var toBase64 = exports.toBase64 = function toBase64(_char) {
|
|
13
|
+
return btoa(encodeURIComponent(_char).replaceAll(/%([\dA-F]{2})/g, function (_, p1) {
|
|
14
|
+
return String.fromCodePoint(Number.parseInt(p1, 16));
|
|
15
|
+
}));
|
|
16
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.toHalfWidth = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* 全角文字を半角文字に変換する
|
|
9
|
+
* @param {string} str - 変換する文字列
|
|
10
|
+
* @returns {string} - 変換された文字列
|
|
11
|
+
*/
|
|
12
|
+
var toHalfWidth = exports.toHalfWidth = function toHalfWidth(string_) {
|
|
13
|
+
return string_.replaceAll(/[0-9A-Za-z]/g, function (s) {
|
|
14
|
+
// eslint-disable-next-line unicorn/prefer-code-point
|
|
15
|
+
var code = s.charCodeAt(0);
|
|
16
|
+
return String.fromCodePoint(code - 0xfee0);
|
|
17
|
+
});
|
|
18
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.trimCharacters = void 0;
|
|
7
|
+
var _trimEndCharacters = require("./trimEndCharacters");
|
|
8
|
+
var _trimStartCharacters = require("./trimStartCharacters");
|
|
9
|
+
/**
|
|
10
|
+
* 指定された文字列から、指定された文字を前後から削除します。
|
|
11
|
+
*
|
|
12
|
+
* @param {string} string_ - トリム対象の文字列。
|
|
13
|
+
* @param {string} chars - 削除する文字のセット。
|
|
14
|
+
* @returns {string} 前後から指定された文字が削除された新しい文字列。
|
|
15
|
+
*/
|
|
16
|
+
var trimCharacters = exports.trimCharacters = function trimCharacters(string_, chars) {
|
|
17
|
+
return (0, _trimEndCharacters.trimEndCharacters)((0, _trimStartCharacters.trimStartCharacters)(string_, chars), chars);
|
|
18
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 指定された文字列の末尾から、指定された文字をすべて取り除きます。
|
|
3
|
+
*
|
|
4
|
+
* @param {string} string_ - トリム処理を行う元の文字列。
|
|
5
|
+
* @param {string} chars - 除去する文字のセット。
|
|
6
|
+
* @returns {string} 末尾から指定された文字が取り除かれた新しい文字列。
|
|
7
|
+
*/
|
|
8
|
+
export declare const trimEndCharacters: (string_: string, chars: string) => string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.trimEndCharacters = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* 指定された文字列の末尾から、指定された文字をすべて取り除きます。
|
|
9
|
+
*
|
|
10
|
+
* @param {string} string_ - トリム処理を行う元の文字列。
|
|
11
|
+
* @param {string} chars - 除去する文字のセット。
|
|
12
|
+
* @returns {string} 末尾から指定された文字が取り除かれた新しい文字列。
|
|
13
|
+
*/
|
|
14
|
+
var trimEndCharacters = exports.trimEndCharacters = function trimEndCharacters(string_, chars) {
|
|
15
|
+
var endIndex = string_.length - 1;
|
|
16
|
+
while (endIndex >= 0 && chars.includes(string_[endIndex])) {
|
|
17
|
+
endIndex--;
|
|
18
|
+
}
|
|
19
|
+
return string_.slice(0, endIndex + 1);
|
|
20
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 指定された文字列の先頭から、指定された文字を取り除きます。
|
|
3
|
+
*
|
|
4
|
+
* @param {string} string_ - 処理対象の文字列。
|
|
5
|
+
* @param {string} chars - 取り除く文字が含まれている文字列。
|
|
6
|
+
* @returns {string} 先頭から指定された文字を取り除いた新しい文字列。
|
|
7
|
+
*/
|
|
8
|
+
export declare const trimStartCharacters: (string_: string, chars: string) => string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.trimStartCharacters = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* 指定された文字列の先頭から、指定された文字を取り除きます。
|
|
9
|
+
*
|
|
10
|
+
* @param {string} string_ - 処理対象の文字列。
|
|
11
|
+
* @param {string} chars - 取り除く文字が含まれている文字列。
|
|
12
|
+
* @returns {string} 先頭から指定された文字を取り除いた新しい文字列。
|
|
13
|
+
*/
|
|
14
|
+
var trimStartCharacters = exports.trimStartCharacters = function trimStartCharacters(string_, chars) {
|
|
15
|
+
var startIndex = 0;
|
|
16
|
+
while (startIndex < string_.length && chars.includes(string_[startIndex])) {
|
|
17
|
+
startIndex++;
|
|
18
|
+
}
|
|
19
|
+
return string_.slice(startIndex);
|
|
20
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { TimeUnit } from "$/time/timeUnit";
|
|
2
|
+
/**
|
|
3
|
+
* 時間を変換する関数
|
|
4
|
+
* @param value 変換する値(文字列)
|
|
5
|
+
* @param fromUnit 変換元の単位
|
|
6
|
+
* @param toUnit 変換先の単位
|
|
7
|
+
* @returns 変換後の値(数値)
|
|
8
|
+
* @throws {Error} 無効な数値入力の場合
|
|
9
|
+
*/
|
|
10
|
+
export declare const convertTime: (value: string | number, fromUnit: TimeUnit, toUnit: TimeUnit) => number;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.convertTime = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* 時間単位間の変換率を定義
|
|
9
|
+
*/
|
|
10
|
+
var conversionRates = {
|
|
11
|
+
milliseconds: 1,
|
|
12
|
+
seconds: 1000,
|
|
13
|
+
minutes: 60 * 1000,
|
|
14
|
+
hours: 60 * 60 * 1000
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 時間を変換する関数
|
|
19
|
+
* @param value 変換する値(文字列)
|
|
20
|
+
* @param fromUnit 変換元の単位
|
|
21
|
+
* @param toUnit 変換先の単位
|
|
22
|
+
* @returns 変換後の値(数値)
|
|
23
|
+
* @throws {Error} 無効な数値入力の場合
|
|
24
|
+
*/
|
|
25
|
+
var convertTime = exports.convertTime = function convertTime(value, fromUnit, toUnit) {
|
|
26
|
+
var numericValue = typeof value === "string" ? Number.parseFloat(value) : value;
|
|
27
|
+
var milliseconds = numericValue * conversionRates[fromUnit];
|
|
28
|
+
return milliseconds / conversionRates[toUnit];
|
|
29
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./convertTime";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _convertTime = require("./convertTime");
|
|
7
|
+
Object.keys(_convertTime).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _convertTime[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _convertTime[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* パイプラインを表すインターフェース。
|
|
3
|
+
* 無引数で呼び出された場合、ストアされている値を返す。
|
|
4
|
+
* 関数が引数として与えられた場合、その関数を適用して新しいPipeインスタンスを生成する。
|
|
5
|
+
*/
|
|
6
|
+
export interface Pipeline<T> {
|
|
7
|
+
(): T;
|
|
8
|
+
<U>(transformer: (input: T) => U): Pipeline<U>;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Pipelineインスタンスを生成する関数
|
|
12
|
+
* @param initialValue 初期値
|
|
13
|
+
* @returns Pipelineインスタンス
|
|
14
|
+
* @example const pipeline = createPipeline(1);
|
|
15
|
+
* pipeline(); // 1
|
|
16
|
+
* pipeline((x) => x + 1)(); // 2
|
|
17
|
+
*/
|
|
18
|
+
export declare const createPipeline: <T>(initialValue: T) => Pipeline<T>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createPipeline = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* パイプラインを表すインターフェース。
|
|
9
|
+
* 無引数で呼び出された場合、ストアされている値を返す。
|
|
10
|
+
* 関数が引数として与えられた場合、その関数を適用して新しいPipeインスタンスを生成する。
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Pipelineインスタンスを生成する関数
|
|
15
|
+
* @param initialValue 初期値
|
|
16
|
+
* @returns Pipelineインスタンス
|
|
17
|
+
* @example const pipeline = createPipeline(1);
|
|
18
|
+
* pipeline(); // 1
|
|
19
|
+
* pipeline((x) => x + 1)(); // 2
|
|
20
|
+
*/
|
|
21
|
+
var _createPipeline = exports.createPipeline = function createPipeline(initialValue) {
|
|
22
|
+
return (
|
|
23
|
+
// 引数として変換関数(transformer)を受け取り、新しいPipelineを返す。
|
|
24
|
+
// 引数が無い場合、ストアされた値(initialValue)を返す。
|
|
25
|
+
function (transformer) {
|
|
26
|
+
return transformer ? _createPipeline(transformer(initialValue)) : initialValue;
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _createPipeline = require("./createPipeline");
|
|
7
|
+
Object.keys(_createPipeline).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _createPipeline[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _createPipeline[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _parseJson = require("./parseJson");
|
|
18
|
+
Object.keys(_parseJson).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _parseJson[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _parseJson[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const parseJson: <T = unknown>(json: string) => T;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.extractBrowserFromUserAgent = void 0;
|
|
7
|
+
var extractBrowserFromUserAgent = exports.extractBrowserFromUserAgent = function extractBrowserFromUserAgent(ua) {
|
|
8
|
+
if (/edg(e)?/i.test(ua)) {
|
|
9
|
+
return "edge";
|
|
10
|
+
}
|
|
11
|
+
if (/chrome|crios/i.test(ua)) {
|
|
12
|
+
return "chrome";
|
|
13
|
+
}
|
|
14
|
+
if (/firefox|fxios/i.test(ua)) {
|
|
15
|
+
return "firefox";
|
|
16
|
+
}
|
|
17
|
+
if (/safari/i.test(ua)) {
|
|
18
|
+
return "safari";
|
|
19
|
+
}
|
|
20
|
+
if (/msie|trident/i.test(ua)) {
|
|
21
|
+
return "ie";
|
|
22
|
+
}
|
|
23
|
+
return "other";
|
|
24
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.extractDeviceFromUserAgent = void 0;
|
|
7
|
+
var extractDeviceFromUserAgent = exports.extractDeviceFromUserAgent = function extractDeviceFromUserAgent(ua) {
|
|
8
|
+
if (/bot|googlebot|crawler|spider|robot|crawling/i.test(ua)) {
|
|
9
|
+
return "bot";
|
|
10
|
+
}
|
|
11
|
+
if (/iphone|ipod|webos|blackberry|iemobile|opera mini/i.test(ua)) {
|
|
12
|
+
return "mobile";
|
|
13
|
+
}
|
|
14
|
+
if (/android/i.test(ua)) {
|
|
15
|
+
if (/mobile/i.test(ua)) {
|
|
16
|
+
return "mobile";
|
|
17
|
+
}
|
|
18
|
+
return "tablet";
|
|
19
|
+
}
|
|
20
|
+
if (/ipad|android(?!.*mobile)/i.test(ua)) {
|
|
21
|
+
return "tablet";
|
|
22
|
+
}
|
|
23
|
+
if (/windows|macintosh|linux/i.test(ua)) {
|
|
24
|
+
return "desktop";
|
|
25
|
+
}
|
|
26
|
+
return "other";
|
|
27
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.extractOsFromUserAgent = void 0;
|
|
7
|
+
var extractOsFromUserAgent = exports.extractOsFromUserAgent = function extractOsFromUserAgent(ua) {
|
|
8
|
+
if (/iphone|ipad|ipod/i.test(ua)) {
|
|
9
|
+
return "ios";
|
|
10
|
+
}
|
|
11
|
+
if (/android/i.test(ua)) {
|
|
12
|
+
return "android";
|
|
13
|
+
}
|
|
14
|
+
if (/mac os x/i.test(ua)) {
|
|
15
|
+
return "macos";
|
|
16
|
+
}
|
|
17
|
+
if (/windows|win32/i.test(ua)) {
|
|
18
|
+
return "windows";
|
|
19
|
+
}
|
|
20
|
+
if (/linux/i.test(ua)) {
|
|
21
|
+
return "linux";
|
|
22
|
+
}
|
|
23
|
+
return "other";
|
|
24
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _extractBrowserFromUserAgent = require("./extractBrowserFromUserAgent");
|
|
7
|
+
Object.keys(_extractBrowserFromUserAgent).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _extractBrowserFromUserAgent[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _extractBrowserFromUserAgent[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _extractDeviceFromUserAgent = require("./extractDeviceFromUserAgent");
|
|
18
|
+
Object.keys(_extractDeviceFromUserAgent).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _extractDeviceFromUserAgent[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _extractDeviceFromUserAgent[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _extractOsFromUserAgent = require("./extractOsFromUserAgent");
|
|
29
|
+
Object.keys(_extractOsFromUserAgent).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _extractOsFromUserAgent[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _extractOsFromUserAgent[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _parseUserAgent = require("./parseUserAgent");
|
|
40
|
+
Object.keys(_parseUserAgent).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _parseUserAgent[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _parseUserAgent[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.parseUserAgent = void 0;
|
|
7
|
+
var _extractBrowserFromUserAgent = require("./extractBrowserFromUserAgent");
|
|
8
|
+
var _extractDeviceFromUserAgent = require("./extractDeviceFromUserAgent");
|
|
9
|
+
var _extractOsFromUserAgent = require("./extractOsFromUserAgent");
|
|
10
|
+
var parseUserAgent = exports.parseUserAgent = function parseUserAgent(userAgent) {
|
|
11
|
+
var ua = userAgent.toLowerCase();
|
|
12
|
+
return {
|
|
13
|
+
os: (0, _extractOsFromUserAgent.extractOsFromUserAgent)(ua),
|
|
14
|
+
browser: (0, _extractBrowserFromUserAgent.extractBrowserFromUserAgent)(ua),
|
|
15
|
+
device: (0, _extractDeviceFromUserAgent.extractDeviceFromUserAgent)(ua)
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { Types, ValidateCoreReturnType, ValidateType } from "@/Validate/type";
|
|
2
|
+
export declare const array: <A extends string | number | boolean, O extends { [P in Types<A>]: (value: ValidateType<P>) => ValidateCoreReturnType<ValidateType<P>>; } = { [P in Types<A>]: (value: ValidateType<P>) => ValidateCoreReturnType<ValidateType<P>>; }>(option?: O, message?: string) => (values: A[]) => ValidateCoreReturnType<A[]>;
|