umt 1.9.0 → 2.1.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,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.toCelsius = void 0;
|
|
7
|
+
var _subtract = require("./subtract");
|
|
8
|
+
/**
|
|
9
|
+
* ケルビンを摂氏に変換する
|
|
10
|
+
* @param kelvin
|
|
11
|
+
* @returns number
|
|
12
|
+
* @example toCelsius(300); // 26.85
|
|
13
|
+
*/
|
|
14
|
+
var toCelsius = exports.toCelsius = function toCelsius(kelvin) {
|
|
15
|
+
return (0, _subtract.subtract)(kelvin, 273.15);
|
|
16
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.toKelvin = void 0;
|
|
7
|
+
var _addition = require("./addition");
|
|
8
|
+
/**
|
|
9
|
+
* 摂氏をケルビンに変換します。
|
|
10
|
+
* @param celsius
|
|
11
|
+
* @returns number
|
|
12
|
+
* @example toKelvin(26.85); // 300
|
|
13
|
+
*/
|
|
14
|
+
var toKelvin = exports.toKelvin = function toKelvin(celsius) {
|
|
15
|
+
return (0, _addition.addition)(celsius, 273.15);
|
|
16
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.uuidv7 = void 0;
|
|
7
|
+
var _random = require("./random");
|
|
8
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
9
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
11
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
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
|
+
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
|
+
/**
|
|
16
|
+
* UUID v7を生成する
|
|
17
|
+
* @example
|
|
18
|
+
* const result = uuidv7()
|
|
19
|
+
*/
|
|
20
|
+
var uuidv7 = exports.uuidv7 = function uuidv7() {
|
|
21
|
+
var DIGITS = "0123456789abcdef";
|
|
22
|
+
var unixTsMs = Date.now();
|
|
23
|
+
var randA = (0, _random.random)(0xfff);
|
|
24
|
+
var randBHi = (0, _random.random)(0x3fffffff);
|
|
25
|
+
var randBLo = (0, _random.random)(0xffffffff);
|
|
26
|
+
var bytes = new Uint8Array(16);
|
|
27
|
+
for (var index = 0; index < 6; index++) {
|
|
28
|
+
bytes[index] = unixTsMs >>> (5 - index) * 8 & 0xff;
|
|
29
|
+
}
|
|
30
|
+
bytes[6] = 0x70 | randA >>> 8;
|
|
31
|
+
bytes[7] = randA & 0xff;
|
|
32
|
+
bytes[8] = 0x80 | randBHi >>> 24;
|
|
33
|
+
bytes[9] = randBHi >>> 16 & 0xff;
|
|
34
|
+
bytes[10] = randBHi >>> 8 & 0xff;
|
|
35
|
+
bytes[11] = randBHi & 0xff;
|
|
36
|
+
bytes[12] = randBLo >>> 24 & 0xff;
|
|
37
|
+
bytes[13] = randBLo >>> 16 & 0xff;
|
|
38
|
+
bytes[14] = randBLo >>> 8 & 0xff;
|
|
39
|
+
bytes[15] = randBLo & 0xff;
|
|
40
|
+
var uuid = "";
|
|
41
|
+
var _iterator = _createForOfIteratorHelper(bytes.entries()),
|
|
42
|
+
_step;
|
|
43
|
+
try {
|
|
44
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
45
|
+
var _step$value = _slicedToArray(_step.value, 2),
|
|
46
|
+
_index = _step$value[0],
|
|
47
|
+
_byte = _step$value[1];
|
|
48
|
+
uuid += DIGITS[_byte >>> 4] + DIGITS[_byte & 0xf];
|
|
49
|
+
if (_index === 3 || _index === 5 || _index === 7 || _index === 9) {
|
|
50
|
+
uuid += "-";
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
} catch (err) {
|
|
54
|
+
_iterator.e(err);
|
|
55
|
+
} finally {
|
|
56
|
+
_iterator.f();
|
|
57
|
+
}
|
|
58
|
+
return uuid;
|
|
59
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.valueSwap = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* x < yになるように入れ替える
|
|
9
|
+
* @param {number} x
|
|
10
|
+
* @param {number} y
|
|
11
|
+
* @return {[number, number]}
|
|
12
|
+
* @example valueSwap(2, 1); // [1, 2]
|
|
13
|
+
*/
|
|
14
|
+
var valueSwap = exports.valueSwap = function valueSwap(x, y) {
|
|
15
|
+
return x < y ? [x, y] : [y, x];
|
|
16
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.xoshiro256 = void 0;
|
|
7
|
+
var _bitwise = require("./bitwise");
|
|
8
|
+
/**
|
|
9
|
+
* Xoshiro256**アルゴリズムによる乱数生成
|
|
10
|
+
* @param state 4つの32ビット状態値の配列
|
|
11
|
+
* @returns 生成された乱数値
|
|
12
|
+
*/
|
|
13
|
+
var xoshiro256 = exports.xoshiro256 = function xoshiro256(state) {
|
|
14
|
+
var min = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
15
|
+
var max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
|
|
16
|
+
var sum = (state[0] >>> 0) + (state[3] >>> 0);
|
|
17
|
+
var result = (0, _bitwise.bitwise)(sum, 23) + (state[0] >>> 0);
|
|
18
|
+
var t = state[1] << 17;
|
|
19
|
+
state[2] ^= state[0];
|
|
20
|
+
state[3] ^= state[1];
|
|
21
|
+
state[1] ^= state[2];
|
|
22
|
+
state[0] ^= state[3];
|
|
23
|
+
state[2] ^= t;
|
|
24
|
+
state[3] = (0, _bitwise.bitwise)(state[3], 45);
|
|
25
|
+
return min + (result >>> 0) / Math.pow(2, 32) * (max - min);
|
|
26
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* オブジェクトが指定されたパスを持っているかどうかを判定する
|
|
3
|
+
* @param {T} object - 判定するオブジェクト
|
|
4
|
+
* @param {string | string[]} path - 判定するパス
|
|
5
|
+
* @returns {boolean} パスが存在すればtrue、そうでなければfalse
|
|
6
|
+
* @example has({ a: { b: 1 } }, "a.b"); // true
|
|
7
|
+
* has({ a: { b: 1 } }, ["a", "b"]); // true
|
|
8
|
+
* has({ a: { b: 1 } }, "a.c"); // false
|
|
9
|
+
*/
|
|
10
|
+
export declare const has: <T extends {
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}>(object: T, path: string | string[]) => boolean;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.has = void 0;
|
|
7
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
9
|
+
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; } }
|
|
10
|
+
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; }
|
|
11
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
12
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
13
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
+
/**
|
|
17
|
+
* オブジェクトが指定されたパスを持っているかどうかを判定する
|
|
18
|
+
* @param {T} object - 判定するオブジェクト
|
|
19
|
+
* @param {string | string[]} path - 判定するパス
|
|
20
|
+
* @returns {boolean} パスが存在すればtrue、そうでなければfalse
|
|
21
|
+
* @example has({ a: { b: 1 } }, "a.b"); // true
|
|
22
|
+
* has({ a: { b: 1 } }, ["a", "b"]); // true
|
|
23
|
+
* has({ a: { b: 1 } }, "a.c"); // false
|
|
24
|
+
*/
|
|
25
|
+
var has = exports.has = function has(object, path) {
|
|
26
|
+
var localPath = typeof path === "string" ? path.split(".") : path;
|
|
27
|
+
var current = _objectSpread({}, object);
|
|
28
|
+
var _iterator = _createForOfIteratorHelper(localPath),
|
|
29
|
+
_step;
|
|
30
|
+
try {
|
|
31
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
32
|
+
var _key = _step.value;
|
|
33
|
+
if (current == null || !Object.prototype.hasOwnProperty.call(current, _key)) {
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
current = current[_key];
|
|
37
|
+
}
|
|
38
|
+
} catch (err) {
|
|
39
|
+
_iterator.e(err);
|
|
40
|
+
} finally {
|
|
41
|
+
_iterator.f();
|
|
42
|
+
}
|
|
43
|
+
return true;
|
|
44
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _has = require("./has");
|
|
7
|
+
Object.keys(_has).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _has[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _has[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
17
|
+
var _keyBy = require("./keyBy");
|
|
18
|
+
Object.keys(_keyBy).forEach(function (key) {
|
|
19
|
+
if (key === "default" || key === "__esModule") return;
|
|
20
|
+
if (key in exports && exports[key] === _keyBy[key]) return;
|
|
21
|
+
Object.defineProperty(exports, key, {
|
|
22
|
+
enumerable: true,
|
|
23
|
+
get: function get() {
|
|
24
|
+
return _keyBy[key];
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
var _pick = require("./pick");
|
|
29
|
+
Object.keys(_pick).forEach(function (key) {
|
|
30
|
+
if (key === "default" || key === "__esModule") return;
|
|
31
|
+
if (key in exports && exports[key] === _pick[key]) return;
|
|
32
|
+
Object.defineProperty(exports, key, {
|
|
33
|
+
enumerable: true,
|
|
34
|
+
get: function get() {
|
|
35
|
+
return _pick[key];
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
var _pickDeep = require("./pickDeep");
|
|
40
|
+
Object.keys(_pickDeep).forEach(function (key) {
|
|
41
|
+
if (key === "default" || key === "__esModule") return;
|
|
42
|
+
if (key in exports && exports[key] === _pickDeep[key]) return;
|
|
43
|
+
Object.defineProperty(exports, key, {
|
|
44
|
+
enumerable: true,
|
|
45
|
+
get: function get() {
|
|
46
|
+
return _pickDeep[key];
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type PropertyName = string | number | symbol;
|
|
2
|
+
type IterateeFunction<T> = (value: T) => PropertyName;
|
|
3
|
+
type Iteratee<T> = IterateeFunction<T> | keyof T;
|
|
4
|
+
/**
|
|
5
|
+
* コレクションの要素をイテレータ関数の結果でキー化したオブジェクトを生成します
|
|
6
|
+
* @param collection 処理対象のコレクション
|
|
7
|
+
* @param iteratee キーを生成するイテレータ関数またはプロパティ名
|
|
8
|
+
*/
|
|
9
|
+
export declare function keyBy<T>(collection: T[] | Record<PropertyName, T>, iteratee?: Iteratee<T>): Record<PropertyName, T>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.keyBy = keyBy;
|
|
7
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
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
|
+
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
|
+
/**
|
|
11
|
+
* コレクションの要素をイテレータ関数の結果でキー化したオブジェクトを生成します
|
|
12
|
+
* @param collection 処理対象のコレクション
|
|
13
|
+
* @param iteratee キーを生成するイテレータ関数またはプロパティ名
|
|
14
|
+
*/
|
|
15
|
+
function keyBy(collection, iteratee) {
|
|
16
|
+
var getKey = normalizeIteratee(iteratee);
|
|
17
|
+
var result = {};
|
|
18
|
+
if (Array.isArray(collection)) {
|
|
19
|
+
var _iterator = _createForOfIteratorHelper(collection),
|
|
20
|
+
_step;
|
|
21
|
+
try {
|
|
22
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
23
|
+
var _value = _step.value;
|
|
24
|
+
var key = getKey(_value);
|
|
25
|
+
result[key] = _value;
|
|
26
|
+
}
|
|
27
|
+
} catch (err) {
|
|
28
|
+
_iterator.e(err);
|
|
29
|
+
} finally {
|
|
30
|
+
_iterator.f();
|
|
31
|
+
}
|
|
32
|
+
return result;
|
|
33
|
+
}
|
|
34
|
+
for (var _i = 0, _Object$values = Object.values(collection); _i < _Object$values.length; _i++) {
|
|
35
|
+
var _value2 = _Object$values[_i];
|
|
36
|
+
var _key = getKey(_value2);
|
|
37
|
+
result[_key] = _value2;
|
|
38
|
+
}
|
|
39
|
+
return result;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* イテレータ関数の正規化
|
|
44
|
+
*/
|
|
45
|
+
function normalizeIteratee(iteratee) {
|
|
46
|
+
if (!iteratee) {
|
|
47
|
+
return function (value) {
|
|
48
|
+
return value;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
if (typeof iteratee === "function") {
|
|
52
|
+
return iteratee;
|
|
53
|
+
}
|
|
54
|
+
return function (object) {
|
|
55
|
+
return object[iteratee];
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 指定されたキーを持つプロパティのみを抽出して新しいオブジェクトを作成します。
|
|
3
|
+
*
|
|
4
|
+
* @template T - 元のオブジェクトの型。
|
|
5
|
+
* @template K - 抽出するキーの型(Tのキーのサブセット)。
|
|
6
|
+
* @param {T} object - プロパティを抽出する元のオブジェクト。
|
|
7
|
+
* @param {...K[]} keys - 抽出したいプロパティのキー。
|
|
8
|
+
* @returns {Pick<T, K>} 指定されたキーを持つプロパティのみを含む新しいオブジェクト。
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```typescript
|
|
12
|
+
* const user = { id: 1, name: 'Alice', age: 30 };
|
|
13
|
+
* const selected = pick(user, 'id', 'name'); // { id: 1, name: 'Alice' }
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const pick: <T extends object, K extends keyof T>(object: T, ...keys: K[]) => Pick<T, K>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.pick = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* 指定されたキーを持つプロパティのみを抽出して新しいオブジェクトを作成します。
|
|
9
|
+
*
|
|
10
|
+
* @template T - 元のオブジェクトの型。
|
|
11
|
+
* @template K - 抽出するキーの型(Tのキーのサブセット)。
|
|
12
|
+
* @param {T} object - プロパティを抽出する元のオブジェクト。
|
|
13
|
+
* @param {...K[]} keys - 抽出したいプロパティのキー。
|
|
14
|
+
* @returns {Pick<T, K>} 指定されたキーを持つプロパティのみを含む新しいオブジェクト。
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```typescript
|
|
18
|
+
* const user = { id: 1, name: 'Alice', age: 30 };
|
|
19
|
+
* const selected = pick(user, 'id', 'name'); // { id: 1, name: 'Alice' }
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
var pick = exports.pick = function pick(object) {
|
|
23
|
+
var result = {};
|
|
24
|
+
for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
25
|
+
keys[_key - 1] = arguments[_key];
|
|
26
|
+
}
|
|
27
|
+
for (var _i = 0, _keys = keys; _i < _keys.length; _i++) {
|
|
28
|
+
var key = _keys[_i];
|
|
29
|
+
result[key] = object[key];
|
|
30
|
+
}
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { PickDeep } from "$/object/pickDeep";
|
|
2
|
+
import type { PickDeepKey } from "$/object/pickDeepKey";
|
|
3
|
+
/**
|
|
4
|
+
* オブジェクトから指定されたキーに基づいて深くプロパティを選択し、新しいオブジェクトを作成します。
|
|
5
|
+
*
|
|
6
|
+
* @template T - 元のオブジェクトの型。
|
|
7
|
+
* @template K - 選択するプロパティキーの型。PickDeepKey<T>のサブセット。
|
|
8
|
+
* @param {T} object - プロパティを抽出する元のオブジェクト。
|
|
9
|
+
* @param {...K[]} keys - 抽出したいプロパティのキー。ネストされたキーをドットで区切ることができます。
|
|
10
|
+
* @returns {PickDeep<T>} 指定されたキーを持つプロパティのみを含む新しいオブジェクト。
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* ```typescript
|
|
14
|
+
* const obj = { a: { b: { c: 1, d: 2 }, e: 3 }, f: 4 };
|
|
15
|
+
* const picked = pickDeep(obj, 'a.b.c', 'f');
|
|
16
|
+
* // picked は { a: { b: { c: 1 } }, f: 4 } となる
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
export declare const pickDeep: <T extends object, K extends PickDeepKey<T>>(object: T, ...keys: K[]) => PickDeep<T>;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.pickDeep = void 0;
|
|
7
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
8
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
9
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
10
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
11
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
12
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
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
|
+
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
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
+
/**
|
|
21
|
+
* オブジェクトから指定されたキーに基づいて深くプロパティを選択し、新しいオブジェクトを作成します。
|
|
22
|
+
*
|
|
23
|
+
* @template T - 元のオブジェクトの型。
|
|
24
|
+
* @template K - 選択するプロパティキーの型。PickDeepKey<T>のサブセット。
|
|
25
|
+
* @param {T} object - プロパティを抽出する元のオブジェクト。
|
|
26
|
+
* @param {...K[]} keys - 抽出したいプロパティのキー。ネストされたキーをドットで区切ることができます。
|
|
27
|
+
* @returns {PickDeep<T>} 指定されたキーを持つプロパティのみを含む新しいオブジェクト。
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* const obj = { a: { b: { c: 1, d: 2 }, e: 3 }, f: 4 };
|
|
32
|
+
* const picked = pickDeep(obj, 'a.b.c', 'f');
|
|
33
|
+
* // picked は { a: { b: { c: 1 } }, f: 4 } となる
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
var pickDeep = exports.pickDeep = function pickDeep(object) {
|
|
37
|
+
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
38
|
+
var result = {};
|
|
39
|
+
for (var _len = arguments.length, keys = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
40
|
+
keys[_key - 1] = arguments[_key];
|
|
41
|
+
}
|
|
42
|
+
for (var _i = 0, _keys = keys; _i < _keys.length; _i++) {
|
|
43
|
+
var key = _keys[_i];
|
|
44
|
+
var parts = key.split(".");
|
|
45
|
+
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
46
|
+
var current = _objectSpread({}, object);
|
|
47
|
+
// biome-ignore lint/suspicious/noExplicitAny: <explanation>
|
|
48
|
+
var target = result;
|
|
49
|
+
var _iterator = _createForOfIteratorHelper(parts.entries()),
|
|
50
|
+
_step;
|
|
51
|
+
try {
|
|
52
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
53
|
+
var _step$value = _slicedToArray(_step.value, 2),
|
|
54
|
+
index = _step$value[0],
|
|
55
|
+
part = _step$value[1];
|
|
56
|
+
if (current && _typeof(current) === "object" && part in current) {
|
|
57
|
+
if (index === parts.length - 1) {
|
|
58
|
+
target[part] = current[part];
|
|
59
|
+
} else {
|
|
60
|
+
target[part] = target[part] || {};
|
|
61
|
+
current = current[part];
|
|
62
|
+
target = target[part];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
} catch (err) {
|
|
67
|
+
_iterator.e(err);
|
|
68
|
+
} finally {
|
|
69
|
+
_iterator.f();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return result;
|
|
73
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./quickSortSimple";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _quickSortSimple = require("./quickSortSimple");
|
|
7
|
+
Object.keys(_quickSortSimple).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (key in exports && exports[key] === _quickSortSimple[key]) return;
|
|
10
|
+
Object.defineProperty(exports, key, {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function get() {
|
|
13
|
+
return _quickSortSimple[key];
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 配列を高速にソート
|
|
3
|
+
* @param {T[]} array 配列
|
|
4
|
+
* @param {(a: T, b: T) => number} compareFunction 比較関数
|
|
5
|
+
* @param {number} startID 開始インデックス
|
|
6
|
+
* @param {number} endID 終了インデックス
|
|
7
|
+
* @returns T[]
|
|
8
|
+
* @example quickSort([1, 3, 2, 4, 5], (a, b) => a - b); // [1, 2, 3, 4, 5]
|
|
9
|
+
*/
|
|
10
|
+
export declare const quickSortSimple: <T>(array: T[], compareFunction?: (a: T, b: T) => number, startID?: number, endID?: number) => T[];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.quickSortSimple = void 0;
|
|
7
|
+
var _compareFunctionDefault = require("@/Array/compareFunctionDefault");
|
|
8
|
+
var _quickSort = require("@/Array/quickSort");
|
|
9
|
+
/**
|
|
10
|
+
* 配列を高速にソート
|
|
11
|
+
* @param {T[]} array 配列
|
|
12
|
+
* @param {(a: T, b: T) => number} compareFunction 比較関数
|
|
13
|
+
* @param {number} startID 開始インデックス
|
|
14
|
+
* @param {number} endID 終了インデックス
|
|
15
|
+
* @returns T[]
|
|
16
|
+
* @example quickSort([1, 3, 2, 4, 5], (a, b) => a - b); // [1, 2, 3, 4, 5]
|
|
17
|
+
*/
|
|
18
|
+
var quickSortSimple = exports.quickSortSimple = function quickSortSimple(array) {
|
|
19
|
+
var compareFunction = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : _compareFunctionDefault.compareFunctionDefault;
|
|
20
|
+
var startID = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
|
|
21
|
+
var endID = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : array.length - 1;
|
|
22
|
+
var localStartID = startID;
|
|
23
|
+
var localEndID = endID;
|
|
24
|
+
if (localStartID < 0 || localStartID >= array.length || localStartID > localEndID) {
|
|
25
|
+
localStartID = 0;
|
|
26
|
+
}
|
|
27
|
+
if (localEndID < 0 || localEndID >= array.length) {
|
|
28
|
+
localEndID = array.length - 1;
|
|
29
|
+
}
|
|
30
|
+
return (0, _quickSort.quickSort)(array, compareFunction, localStartID, localEndID);
|
|
31
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { HoursTypeInt } from "$/clock/hoursTypeInt";
|
|
2
|
+
import type { DayType } from "$/date/dayType";
|
|
3
|
+
import type { MonType } from "$/date/monType";
|
|
4
|
+
export type BIRTHDAYSIMPLE = <T extends MonType>(birthdays: Date | `${number}-${T}-${DayType<T>}` | `${number}:${T}:${DayType<T>}` | `${number}/${T}/${DayType<T>}` | {
|
|
5
|
+
year: number;
|
|
6
|
+
mon: number;
|
|
7
|
+
day: number;
|
|
8
|
+
}, timeDifference?: HoursTypeInt) => number;
|
|
9
|
+
/**
|
|
10
|
+
* 年齢を取得する
|
|
11
|
+
* @param birthdays - 誕生日
|
|
12
|
+
* @param timeDifference - 時差 (default: 9)
|
|
13
|
+
* @returns number
|
|
14
|
+
* @example birthdaySimple("2000-01-01");
|
|
15
|
+
* birthdaySimple("2000:01:01");
|
|
16
|
+
* birthdaySimple("2000/01/01");
|
|
17
|
+
* birthdaySimple({ year: 2000, mon: 1, day: 1 });
|
|
18
|
+
* birthdaySimple(new Date(2000, 0, 1));
|
|
19
|
+
*/
|
|
20
|
+
export declare const birthdaySimple: BIRTHDAYSIMPLE;
|