diginext-utils 3.13.15 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +144 -138
- package/dist/Checker.d.ts +9 -8
- package/dist/Checker.d.ts.map +1 -0
- package/dist/Checker.js +32 -31
- package/dist/Checker.js.map +1 -0
- package/dist/EventDispatcher.d.ts +14 -13
- package/dist/EventDispatcher.d.ts.map +1 -0
- package/dist/EventDispatcher.js +52 -51
- package/dist/EventDispatcher.js.map +1 -0
- package/dist/FileUpload.d.ts +13 -12
- package/dist/FileUpload.d.ts.map +1 -0
- package/dist/FileUpload.js +65 -64
- package/dist/FileUpload.js.map +1 -0
- package/dist/Slug.d.ts +10 -9
- package/dist/Slug.d.ts.map +1 -0
- package/dist/Slug.js +335 -334
- package/dist/Slug.js.map +1 -0
- package/dist/Timer.d.ts +5 -4
- package/dist/Timer.d.ts.map +1 -0
- package/dist/Timer.js +9 -8
- package/dist/Timer.js.map +1 -0
- package/dist/Validation.d.ts +6 -5
- package/dist/Validation.d.ts.map +1 -0
- package/dist/Validation.js +39 -38
- package/dist/Validation.js.map +1 -0
- package/dist/array/average.d.ts +18 -0
- package/dist/array/average.d.ts.map +1 -0
- package/dist/array/average.js +27 -0
- package/dist/array/average.js.map +1 -0
- package/dist/array/chunk.d.ts +17 -0
- package/dist/array/chunk.d.ts.map +1 -0
- package/dist/array/chunk.js +32 -0
- package/dist/array/chunk.js.map +1 -0
- package/dist/array/compact.d.ts +17 -0
- package/dist/array/compact.d.ts.map +1 -0
- package/dist/array/compact.js +25 -0
- package/dist/array/compact.js.map +1 -0
- package/dist/array/difference.d.ts +17 -0
- package/dist/array/difference.d.ts.map +1 -0
- package/dist/array/difference.js +29 -0
- package/dist/array/difference.js.map +1 -0
- package/dist/array/first.d.ts +16 -0
- package/dist/array/first.d.ts.map +1 -0
- package/dist/array/first.js +24 -0
- package/dist/array/first.js.map +1 -0
- package/dist/array/flatten.d.ts +17 -0
- package/dist/array/flatten.d.ts.map +1 -0
- package/dist/array/flatten.js +36 -0
- package/dist/array/flatten.js.map +1 -0
- package/dist/array/index.d.ts +27 -0
- package/dist/array/index.d.ts.map +1 -0
- package/dist/array/index.js +52 -0
- package/dist/array/index.js.map +1 -0
- package/dist/array/intersection.d.ts +18 -0
- package/dist/array/intersection.d.ts.map +1 -0
- package/dist/array/intersection.js +27 -0
- package/dist/array/intersection.js.map +1 -0
- package/dist/array/last.d.ts +16 -0
- package/dist/array/last.d.ts.map +1 -0
- package/dist/array/last.js +24 -0
- package/dist/array/last.js.map +1 -0
- package/dist/array/max.d.ts +18 -0
- package/dist/array/max.d.ts.map +1 -0
- package/dist/array/max.js +36 -0
- package/dist/array/max.js.map +1 -0
- package/dist/array/min.d.ts +18 -0
- package/dist/array/min.d.ts.map +1 -0
- package/dist/array/min.js +36 -0
- package/dist/array/min.js.map +1 -0
- package/dist/array/moveElement.d.ts +18 -0
- package/dist/array/moveElement.d.ts.map +1 -0
- package/dist/array/moveElement.js +49 -0
- package/dist/array/moveElement.js.map +1 -0
- package/dist/array/randomElement.d.ts +16 -0
- package/dist/array/randomElement.d.ts.map +1 -0
- package/dist/array/randomElement.js +26 -0
- package/dist/array/randomElement.js.map +1 -0
- package/dist/array/randomIndex.d.ts +15 -0
- package/dist/array/randomIndex.d.ts.map +1 -0
- package/dist/array/randomIndex.js +23 -0
- package/dist/array/randomIndex.js.map +1 -0
- package/dist/array/removeItem.d.ts +18 -0
- package/dist/array/removeItem.d.ts.map +1 -0
- package/dist/array/removeItem.js +30 -0
- package/dist/array/removeItem.js.map +1 -0
- package/dist/array/removeItemByKey.d.ts +23 -0
- package/dist/array/removeItemByKey.d.ts.map +1 -0
- package/dist/array/removeItemByKey.js +35 -0
- package/dist/array/removeItemByKey.js.map +1 -0
- package/dist/array/sample.d.ts +18 -0
- package/dist/array/sample.d.ts.map +1 -0
- package/dist/array/sample.js +52 -0
- package/dist/array/sample.js.map +1 -0
- package/dist/array/shuffle.d.ts +17 -0
- package/dist/array/shuffle.d.ts.map +1 -0
- package/dist/array/shuffle.js +32 -0
- package/dist/array/shuffle.js.map +1 -0
- package/dist/array/sortByNumber.d.ts +22 -0
- package/dist/array/sortByNumber.d.ts.map +1 -0
- package/dist/array/sortByNumber.js +34 -0
- package/dist/array/sortByNumber.js.map +1 -0
- package/dist/array/sortByString.d.ts +22 -0
- package/dist/array/sortByString.d.ts.map +1 -0
- package/dist/array/sortByString.js +37 -0
- package/dist/array/sortByString.js.map +1 -0
- package/dist/array/sum.d.ts +18 -0
- package/dist/array/sum.d.ts.map +1 -0
- package/dist/array/sum.js +32 -0
- package/dist/array/sum.js.map +1 -0
- package/dist/array/union.d.ts +15 -0
- package/dist/array/union.d.ts.map +1 -0
- package/dist/array/union.js +23 -0
- package/dist/array/union.js.map +1 -0
- package/dist/array/unique.d.ts +18 -0
- package/dist/array/unique.d.ts.map +1 -0
- package/dist/array/unique.js +39 -0
- package/dist/array/unique.js.map +1 -0
- package/dist/array.d.ts +114 -113
- package/dist/array.d.ts.map +1 -0
- package/dist/array.js +298 -297
- package/dist/array.js.map +1 -0
- package/dist/cached/CacheManager.d.ts +22 -21
- package/dist/cached/CacheManager.d.ts.map +1 -0
- package/dist/cached/CacheManager.js +119 -118
- package/dist/cached/CacheManager.js.map +1 -0
- package/dist/color.d.ts +26 -25
- package/dist/color.d.ts.map +1 -0
- package/dist/color.js +97 -95
- package/dist/color.js.map +1 -0
- package/dist/date/index.d.ts +7 -0
- package/dist/date/index.d.ts.map +1 -0
- package/dist/date/index.js +15 -0
- package/dist/date/index.js.map +1 -0
- package/dist/date/timeAgo.d.ts +2 -1
- package/dist/date/timeAgo.d.ts.map +1 -0
- package/dist/date/timeAgo.js +32 -31
- package/dist/date/timeAgo.js.map +1 -0
- package/dist/device/browser.d.ts +6 -5
- package/dist/device/browser.d.ts.map +1 -0
- package/dist/device/browser.js +58 -58
- package/dist/device/browser.js.map +1 -0
- package/dist/device/camera.d.ts +8 -7
- package/dist/device/camera.d.ts.map +1 -0
- package/dist/device/camera.js +172 -178
- package/dist/device/camera.js.map +1 -0
- package/dist/device/index.d.ts +6 -5
- package/dist/device/index.d.ts.map +1 -0
- package/dist/device/index.js +220 -219
- package/dist/device/index.js.map +1 -0
- package/dist/device/os.d.ts +12 -11
- package/dist/device/os.d.ts.map +1 -0
- package/dist/device/os.js +37 -37
- package/dist/device/os.js.map +1 -0
- package/dist/email/index.d.ts +9 -8
- package/dist/email/index.d.ts.map +1 -0
- package/dist/email/index.js +39 -38
- package/dist/email/index.js.map +1 -0
- package/dist/file/createDir.d.ts +6 -5
- package/dist/file/createDir.d.ts.map +1 -0
- package/dist/file/createDir.js +16 -15
- package/dist/file/createDir.js.map +1 -0
- package/dist/file/detectPrivateKey.d.ts +6 -5
- package/dist/file/detectPrivateKey.d.ts.map +1 -0
- package/dist/file/detectPrivateKey.js +29 -29
- package/dist/file/detectPrivateKey.js.map +1 -0
- package/dist/file/detectPrivateKeyByFilePath.d.ts +3 -2
- package/dist/file/detectPrivateKeyByFilePath.d.ts.map +1 -0
- package/dist/file/detectPrivateKeyByFilePath.js +39 -37
- package/dist/file/detectPrivateKeyByFilePath.js.map +1 -0
- package/dist/file/fileMove.d.ts +5 -4
- package/dist/file/fileMove.d.ts.map +1 -0
- package/dist/file/fileMove.js +32 -32
- package/dist/file/fileMove.js.map +1 -0
- package/dist/file/findFilesByExt.d.ts +14 -13
- package/dist/file/findFilesByExt.d.ts.map +1 -0
- package/dist/file/findFilesByExt.js +50 -49
- package/dist/file/findFilesByExt.js.map +1 -0
- package/dist/file/getAllFiles.d.ts +2 -1
- package/dist/file/getAllFiles.d.ts.map +1 -0
- package/dist/file/getAllFiles.js +39 -38
- package/dist/file/getAllFiles.js.map +1 -0
- package/dist/file/index.d.ts +10 -9
- package/dist/file/index.d.ts.map +1 -0
- package/dist/file/index.js +11 -10
- package/dist/file/index.js.map +1 -0
- package/dist/file/parseEnvFile.d.ts +9 -8
- package/dist/file/parseEnvFile.d.ts.map +1 -0
- package/dist/file/parseEnvFile.js +44 -44
- package/dist/file/parseEnvFile.js.map +1 -0
- package/dist/gameboi/index.d.ts +12 -12
- package/dist/gameboi/index.d.ts.map +1 -0
- package/dist/gameboi/index.js +72 -72
- package/dist/gameboi/index.js.map +1 -0
- package/dist/html/transform3dToObject.d.ts +6 -5
- package/dist/html/transform3dToObject.d.ts.map +1 -0
- package/dist/html/transform3dToObject.js +13 -12
- package/dist/html/transform3dToObject.js.map +1 -0
- package/dist/images/downloadByUrl.d.ts +17 -16
- package/dist/images/downloadByUrl.d.ts.map +1 -0
- package/dist/images/downloadByUrl.js +81 -80
- package/dist/images/downloadByUrl.js.map +1 -0
- package/dist/images/getImageDimensions.d.ts +5 -4
- package/dist/images/getImageDimensions.d.ts.map +1 -0
- package/dist/images/getImageDimensions.js +20 -19
- package/dist/images/getImageDimensions.js.map +1 -0
- package/dist/images/getUrlBypassCors.d.ts +3 -2
- package/dist/images/getUrlBypassCors.d.ts.map +1 -0
- package/dist/images/getUrlBypassCors.js +15 -14
- package/dist/images/getUrlBypassCors.js.map +1 -0
- package/dist/images/index.d.ts +3 -2
- package/dist/images/index.d.ts.map +1 -0
- package/dist/images/index.js +9 -8
- package/dist/images/index.js.map +1 -0
- package/dist/images/loadImage.d.ts +2 -1
- package/dist/images/loadImage.d.ts.map +1 -0
- package/dist/images/loadImage.js +18 -17
- package/dist/images/loadImage.js.map +1 -0
- package/dist/images/loadImageAsBlobUrl.d.ts +2 -1
- package/dist/images/loadImageAsBlobUrl.d.ts.map +1 -0
- package/dist/images/loadImageAsBlobUrl.js +38 -37
- package/dist/images/loadImageAsBlobUrl.js.map +1 -0
- package/dist/images/resize.d.ts +4 -3
- package/dist/images/resize.d.ts.map +1 -0
- package/dist/images/resize.js +41 -40
- package/dist/images/resize.js.map +1 -0
- package/dist/images/upload.d.ts +11 -10
- package/dist/images/upload.d.ts.map +1 -0
- package/dist/images/upload.js +27 -26
- package/dist/images/upload.js.map +1 -0
- package/dist/index.d.ts +33 -37
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +75 -62
- package/dist/index.js.map +1 -0
- package/dist/json.d.ts +9 -8
- package/dist/json.d.ts.map +1 -0
- package/dist/json.js +32 -31
- package/dist/json.js.map +1 -0
- package/dist/lib/batchProcessor.d.ts +2 -1
- package/dist/lib/batchProcessor.d.ts.map +1 -0
- package/dist/lib/batchProcessor.js +17 -16
- package/dist/lib/batchProcessor.js.map +1 -0
- package/dist/math/angleBetweenPoints.d.ts +20 -0
- package/dist/math/angleBetweenPoints.d.ts.map +1 -0
- package/dist/math/angleBetweenPoints.js +29 -0
- package/dist/math/angleBetweenPoints.js.map +1 -0
- package/dist/math/clamp.d.ts +18 -0
- package/dist/math/clamp.d.ts.map +1 -0
- package/dist/math/clamp.js +24 -0
- package/dist/math/clamp.js.map +1 -0
- package/dist/math/degToRad.d.ts +15 -0
- package/dist/math/degToRad.d.ts.map +1 -0
- package/dist/math/degToRad.js +24 -0
- package/dist/math/degToRad.js.map +1 -0
- package/dist/math/diffDate.d.ts +6 -5
- package/dist/math/diffDate.d.ts.map +1 -0
- package/dist/math/diffDate.js +13 -13
- package/dist/math/diffDate.js.map +1 -0
- package/dist/math/distance.d.ts +18 -0
- package/dist/math/distance.d.ts.map +1 -0
- package/dist/math/distance.js +24 -0
- package/dist/math/distance.js.map +1 -0
- package/dist/math/index.d.ts +25 -30
- package/dist/math/index.d.ts.map +1 -0
- package/dist/math/index.js +40 -92
- package/dist/math/index.js.map +1 -0
- package/dist/math/lerp.d.ts +19 -0
- package/dist/math/lerp.d.ts.map +1 -0
- package/dist/math/lerp.js +24 -0
- package/dist/math/lerp.js.map +1 -0
- package/dist/math/positiveNumber.d.ts +3 -2
- package/dist/math/positiveNumber.d.ts.map +1 -0
- package/dist/math/positiveNumber.js +16 -16
- package/dist/math/positiveNumber.js.map +1 -0
- package/dist/math/radToDeg.d.ts +15 -0
- package/dist/math/radToDeg.d.ts.map +1 -0
- package/dist/math/radToDeg.js +24 -0
- package/dist/math/radToDeg.js.map +1 -0
- package/dist/math/random.d.ts +15 -0
- package/dist/math/random.d.ts.map +1 -0
- package/dist/math/random.js +20 -0
- package/dist/math/random.js.map +1 -0
- package/dist/math/randomFloat.d.ts +15 -0
- package/dist/math/randomFloat.d.ts.map +1 -0
- package/dist/math/randomFloat.js +20 -0
- package/dist/math/randomFloat.js.map +1 -0
- package/dist/math/randomInt.d.ts +15 -0
- package/dist/math/randomInt.d.ts.map +1 -0
- package/dist/math/randomInt.js +20 -0
- package/dist/math/randomInt.js.map +1 -0
- package/dist/math/round.d.ts +17 -0
- package/dist/math/round.d.ts.map +1 -0
- package/dist/math/round.js +23 -0
- package/dist/math/round.js.map +1 -0
- package/dist/name/en.d.ts +6 -5
- package/dist/name/en.d.ts.map +1 -0
- package/dist/name/en.js +29 -25
- package/dist/name/en.js.map +1 -0
- package/dist/name/index.d.ts +13 -12
- package/dist/name/index.d.ts.map +1 -0
- package/dist/name/index.js +13 -12
- package/dist/name/index.js.map +1 -0
- package/dist/name/vi.d.ts +6 -5
- package/dist/name/vi.d.ts.map +1 -0
- package/dist/name/vi.js +28 -27
- package/dist/name/vi.js.map +1 -0
- package/dist/object/deepClone.d.ts +18 -0
- package/dist/object/deepClone.d.ts.map +1 -0
- package/dist/object/deepClone.js +44 -0
- package/dist/object/deepClone.js.map +1 -0
- package/dist/object/index.d.ts +19 -0
- package/dist/object/index.d.ts.map +1 -0
- package/dist/object/index.js +36 -0
- package/dist/object/index.js.map +1 -0
- package/dist/object/isEmpty.d.ts +20 -0
- package/dist/object/isEmpty.d.ts.map +1 -0
- package/dist/object/isEmpty.js +34 -0
- package/dist/object/isEmpty.js.map +1 -0
- package/dist/object/isEqual.d.ts +19 -0
- package/dist/object/isEqual.d.ts.map +1 -0
- package/dist/object/isEqual.js +57 -0
- package/dist/object/isEqual.js.map +1 -0
- package/dist/object/isNull.d.ts +21 -0
- package/dist/object/isNull.d.ts.map +1 -0
- package/dist/object/isNull.js +47 -0
- package/dist/object/isNull.js.map +1 -0
- package/dist/object/isObject.d.ts +19 -0
- package/dist/object/isObject.d.ts.map +1 -0
- package/dist/object/isObject.js +24 -0
- package/dist/object/isObject.js.map +1 -0
- package/dist/object/iterate.d.ts +20 -0
- package/dist/object/iterate.d.ts.map +1 -0
- package/dist/object/iterate.js +35 -0
- package/dist/object/iterate.js.map +1 -0
- package/dist/object/merge.d.ts +18 -0
- package/dist/object/merge.d.ts.map +1 -0
- package/dist/object/merge.js +43 -0
- package/dist/object/merge.js.map +1 -0
- package/dist/object/omit.d.ts +17 -0
- package/dist/object/omit.d.ts.map +1 -0
- package/dist/object/omit.js +31 -0
- package/dist/object/omit.js.map +1 -0
- package/dist/object/pick.d.ts +17 -0
- package/dist/object/pick.d.ts.map +1 -0
- package/dist/object/pick.js +30 -0
- package/dist/object/pick.js.map +1 -0
- package/dist/object/toArray.d.ts +20 -0
- package/dist/object/toArray.d.ts.map +1 -0
- package/dist/object/toArray.js +32 -0
- package/dist/object/toArray.js.map +1 -0
- package/dist/object/toBool.d.ts +21 -0
- package/dist/object/toBool.d.ts.map +1 -0
- package/dist/object/toBool.js +38 -0
- package/dist/object/toBool.js.map +1 -0
- package/dist/object/toFloat.d.ts +19 -0
- package/dist/object/toFloat.d.ts.map +1 -0
- package/dist/object/toFloat.js +29 -0
- package/dist/object/toFloat.js.map +1 -0
- package/dist/object/toInt.d.ts +19 -0
- package/dist/object/toInt.d.ts.map +1 -0
- package/dist/object/toInt.js +29 -0
- package/dist/object/toInt.js.map +1 -0
- package/dist/object/toObject.d.ts +18 -0
- package/dist/object/toObject.d.ts.map +1 -0
- package/dist/object/toObject.js +32 -0
- package/dist/object/toObject.js.map +1 -0
- package/dist/object.d.ts +35 -34
- package/dist/object.d.ts.map +1 -0
- package/dist/object.js +119 -118
- package/dist/object.js.map +1 -0
- package/dist/permission/index.d.ts +9 -8
- package/dist/permission/index.d.ts.map +1 -0
- package/dist/permission/index.js +7 -6
- package/dist/permission/index.js.map +1 -0
- package/dist/permission/requestCamera.d.ts +6 -5
- package/dist/permission/requestCamera.d.ts.map +1 -0
- package/dist/permission/requestCamera.js +43 -42
- package/dist/permission/requestCamera.js.map +1 -0
- package/dist/permission/requestDeviceOrientationControl.d.ts +3 -2
- package/dist/permission/requestDeviceOrientationControl.d.ts.map +1 -0
- package/dist/permission/requestDeviceOrientationControl.js +39 -38
- package/dist/permission/requestDeviceOrientationControl.js.map +1 -0
- package/dist/response/index.d.ts +50 -49
- package/dist/response/index.d.ts.map +1 -0
- package/dist/response/index.js +67 -66
- package/dist/response/index.js.map +1 -0
- package/dist/string/convertPathnameAndQuery.d.ts +5 -4
- package/dist/string/convertPathnameAndQuery.d.ts.map +1 -0
- package/dist/string/convertPathnameAndQuery.js +25 -24
- package/dist/string/convertPathnameAndQuery.js.map +1 -0
- package/dist/string/formatBytes.d.ts +2 -1
- package/dist/string/formatBytes.d.ts.map +1 -0
- package/dist/string/formatBytes.js +18 -17
- package/dist/string/formatBytes.js.map +1 -0
- package/dist/string/formatNumber.d.ts +7 -6
- package/dist/string/formatNumber.d.ts.map +1 -0
- package/dist/string/formatNumber.js +14 -14
- package/dist/string/formatNumber.js.map +1 -0
- package/dist/string/generatePassword.d.ts +10 -9
- package/dist/string/generatePassword.d.ts.map +1 -0
- package/dist/string/generatePassword.js +26 -23
- package/dist/string/generatePassword.js.map +1 -0
- package/dist/string/generateUUID.d.ts +3 -2
- package/dist/string/generateUUID.d.ts.map +1 -0
- package/dist/string/generateUUID.js +36 -36
- package/dist/string/generateUUID.js.map +1 -0
- package/dist/string/getIntFromNextJsRouter.d.ts +2 -1
- package/dist/string/getIntFromNextJsRouter.d.ts.map +1 -0
- package/dist/string/getIntFromNextJsRouter.js +11 -10
- package/dist/string/getIntFromNextJsRouter.js.map +1 -0
- package/dist/string/getStringFromNextJsRouter.d.ts +2 -1
- package/dist/string/getStringFromNextJsRouter.d.ts.map +1 -0
- package/dist/string/getStringFromNextJsRouter.js +11 -10
- package/dist/string/getStringFromNextJsRouter.js.map +1 -0
- package/dist/string/getTextBetweenCharByIndex.d.ts +2 -1
- package/dist/string/getTextBetweenCharByIndex.d.ts.map +1 -0
- package/dist/string/getTextBetweenCharByIndex.js +21 -20
- package/dist/string/getTextBetweenCharByIndex.js.map +1 -0
- package/dist/string/guessMimeType.d.ts +3 -2
- package/dist/string/guessMimeType.d.ts.map +1 -0
- package/dist/string/guessMimeType.js +77 -77
- package/dist/string/guessMimeType.js.map +1 -0
- package/dist/string/guessMimeTypeByBuffer.d.ts +2 -3
- package/dist/string/guessMimeTypeByBuffer.d.ts.map +1 -0
- package/dist/string/guessMimeTypeByBuffer.js +40 -39
- package/dist/string/guessMimeTypeByBuffer.js.map +1 -0
- package/dist/string/index.d.ts +66 -65
- package/dist/string/index.d.ts.map +1 -0
- package/dist/string/index.js +162 -161
- package/dist/string/index.js.map +1 -0
- package/dist/string/indexesOf.d.ts +2 -1
- package/dist/string/indexesOf.d.ts.map +1 -0
- package/dist/string/indexesOf.js +15 -14
- package/dist/string/indexesOf.js.map +1 -0
- package/dist/string/makeDaySlug.d.ts +28 -27
- package/dist/string/makeDaySlug.d.ts.map +1 -0
- package/dist/string/makeDaySlug.js +18 -18
- package/dist/string/makeDaySlug.js.map +1 -0
- package/dist/string/makeSlug.d.ts +4 -3
- package/dist/string/makeSlug.d.ts.map +1 -0
- package/dist/string/makeSlug.js +7 -6
- package/dist/string/makeSlug.js.map +1 -0
- package/dist/string/padNumberWithLeadingZeros.d.ts +2 -1
- package/dist/string/padNumberWithLeadingZeros.d.ts.map +1 -0
- package/dist/string/padNumberWithLeadingZeros.js +13 -12
- package/dist/string/padNumberWithLeadingZeros.js.map +1 -0
- package/dist/string/random.d.ts +21 -20
- package/dist/string/random.d.ts.map +1 -0
- package/dist/string/random.js +51 -50
- package/dist/string/random.js.map +1 -0
- package/dist/string/trimNull.d.ts +3 -2
- package/dist/string/trimNull.d.ts.map +1 -0
- package/dist/string/trimNull.js +20 -20
- package/dist/string/trimNull.js.map +1 -0
- package/dist/string/url.d.ts +29 -28
- package/dist/string/url.d.ts.map +1 -0
- package/dist/string/url.js +121 -118
- package/dist/string/url.js.map +1 -0
- package/dist/xconsole/enableConsole.d.ts +3 -2
- package/dist/xconsole/enableConsole.d.ts.map +1 -0
- package/dist/xconsole/enableConsole.js +13 -13
- package/dist/xconsole/enableConsole.js.map +1 -0
- package/dist/xconsole/index.d.ts +12 -11
- package/dist/xconsole/index.d.ts.map +1 -0
- package/dist/xconsole/index.js +19 -18
- package/dist/xconsole/index.js.map +1 -0
- package/dist/xconsole/log.d.ts +16 -15
- package/dist/xconsole/log.d.ts.map +1 -0
- package/dist/xconsole/log.js +45 -44
- package/dist/xconsole/log.js.map +1 -0
- package/esm/Checker.d.ts +9 -8
- package/esm/Checker.d.ts.map +1 -0
- package/esm/Checker.js +28 -27
- package/esm/Checker.js.map +1 -0
- package/esm/EventDispatcher.d.ts +14 -13
- package/esm/EventDispatcher.d.ts.map +1 -0
- package/esm/EventDispatcher.js +49 -48
- package/esm/EventDispatcher.js.map +1 -0
- package/esm/FileUpload.d.ts +13 -12
- package/esm/FileUpload.d.ts.map +1 -0
- package/esm/FileUpload.js +62 -61
- package/esm/FileUpload.js.map +1 -0
- package/esm/Slug.d.ts +10 -9
- package/esm/Slug.d.ts.map +1 -0
- package/esm/Slug.js +331 -330
- package/esm/Slug.js.map +1 -0
- package/esm/Timer.d.ts +5 -4
- package/esm/Timer.d.ts.map +1 -0
- package/esm/Timer.js +7 -6
- package/esm/Timer.js.map +1 -0
- package/esm/Validation.d.ts +6 -5
- package/esm/Validation.d.ts.map +1 -0
- package/esm/Validation.js +37 -36
- package/esm/Validation.js.map +1 -0
- package/esm/array/average.d.ts +18 -0
- package/esm/array/average.d.ts.map +1 -0
- package/esm/array/average.js +24 -0
- package/esm/array/average.js.map +1 -0
- package/esm/array/chunk.d.ts +17 -0
- package/esm/array/chunk.d.ts.map +1 -0
- package/esm/array/chunk.js +29 -0
- package/esm/array/chunk.js.map +1 -0
- package/esm/array/compact.d.ts +17 -0
- package/esm/array/compact.d.ts.map +1 -0
- package/esm/array/compact.js +22 -0
- package/esm/array/compact.js.map +1 -0
- package/esm/array/difference.d.ts +17 -0
- package/esm/array/difference.d.ts.map +1 -0
- package/esm/array/difference.js +26 -0
- package/esm/array/difference.js.map +1 -0
- package/esm/array/first.d.ts +16 -0
- package/esm/array/first.d.ts.map +1 -0
- package/esm/array/first.js +21 -0
- package/esm/array/first.js.map +1 -0
- package/esm/array/flatten.d.ts +17 -0
- package/esm/array/flatten.d.ts.map +1 -0
- package/esm/array/flatten.js +33 -0
- package/esm/array/flatten.js.map +1 -0
- package/esm/array/index.d.ts +27 -0
- package/esm/array/index.d.ts.map +1 -0
- package/esm/array/index.js +27 -0
- package/esm/array/index.js.map +1 -0
- package/esm/array/intersection.d.ts +18 -0
- package/esm/array/intersection.d.ts.map +1 -0
- package/esm/array/intersection.js +24 -0
- package/esm/array/intersection.js.map +1 -0
- package/esm/array/last.d.ts +16 -0
- package/esm/array/last.d.ts.map +1 -0
- package/esm/array/last.js +21 -0
- package/esm/array/last.js.map +1 -0
- package/esm/array/max.d.ts +18 -0
- package/esm/array/max.d.ts.map +1 -0
- package/esm/array/max.js +33 -0
- package/esm/array/max.js.map +1 -0
- package/esm/array/min.d.ts +18 -0
- package/esm/array/min.d.ts.map +1 -0
- package/esm/array/min.js +33 -0
- package/esm/array/min.js.map +1 -0
- package/esm/array/moveElement.d.ts +18 -0
- package/esm/array/moveElement.d.ts.map +1 -0
- package/esm/array/moveElement.js +46 -0
- package/esm/array/moveElement.js.map +1 -0
- package/esm/array/randomElement.d.ts +16 -0
- package/esm/array/randomElement.d.ts.map +1 -0
- package/esm/array/randomElement.js +23 -0
- package/esm/array/randomElement.js.map +1 -0
- package/esm/array/randomIndex.d.ts +15 -0
- package/esm/array/randomIndex.d.ts.map +1 -0
- package/esm/array/randomIndex.js +20 -0
- package/esm/array/randomIndex.js.map +1 -0
- package/esm/array/removeItem.d.ts +18 -0
- package/esm/array/removeItem.d.ts.map +1 -0
- package/esm/array/removeItem.js +27 -0
- package/esm/array/removeItem.js.map +1 -0
- package/esm/array/removeItemByKey.d.ts +23 -0
- package/esm/array/removeItemByKey.d.ts.map +1 -0
- package/esm/array/removeItemByKey.js +32 -0
- package/esm/array/removeItemByKey.js.map +1 -0
- package/esm/array/sample.d.ts +18 -0
- package/esm/array/sample.d.ts.map +1 -0
- package/esm/array/sample.js +49 -0
- package/esm/array/sample.js.map +1 -0
- package/esm/array/shuffle.d.ts +17 -0
- package/esm/array/shuffle.d.ts.map +1 -0
- package/esm/array/shuffle.js +29 -0
- package/esm/array/shuffle.js.map +1 -0
- package/esm/array/sortByNumber.d.ts +22 -0
- package/esm/array/sortByNumber.d.ts.map +1 -0
- package/esm/array/sortByNumber.js +31 -0
- package/esm/array/sortByNumber.js.map +1 -0
- package/esm/array/sortByString.d.ts +22 -0
- package/esm/array/sortByString.d.ts.map +1 -0
- package/esm/array/sortByString.js +34 -0
- package/esm/array/sortByString.js.map +1 -0
- package/esm/array/sum.d.ts +18 -0
- package/esm/array/sum.d.ts.map +1 -0
- package/esm/array/sum.js +29 -0
- package/esm/array/sum.js.map +1 -0
- package/esm/array/union.d.ts +15 -0
- package/esm/array/union.d.ts.map +1 -0
- package/esm/array/union.js +20 -0
- package/esm/array/union.js.map +1 -0
- package/esm/array/unique.d.ts +18 -0
- package/esm/array/unique.d.ts.map +1 -0
- package/esm/array/unique.js +36 -0
- package/esm/array/unique.js.map +1 -0
- package/esm/array.d.ts +114 -113
- package/esm/array.d.ts.map +1 -0
- package/esm/array.js +276 -275
- package/esm/array.js.map +1 -0
- package/esm/cached/CacheManager.d.ts +22 -21
- package/esm/cached/CacheManager.d.ts.map +1 -0
- package/esm/cached/CacheManager.js +113 -112
- package/esm/cached/CacheManager.js.map +1 -0
- package/esm/color.d.ts +26 -25
- package/esm/color.d.ts.map +1 -0
- package/esm/color.js +87 -85
- package/esm/color.js.map +1 -0
- package/esm/date/index.d.ts +7 -0
- package/esm/date/index.d.ts.map +1 -0
- package/esm/date/index.js +7 -0
- package/esm/date/index.js.map +1 -0
- package/esm/date/timeAgo.d.ts +2 -1
- package/esm/date/timeAgo.d.ts.map +1 -0
- package/esm/date/timeAgo.js +29 -28
- package/esm/date/timeAgo.js.map +1 -0
- package/esm/device/browser.d.ts +6 -5
- package/esm/device/browser.d.ts.map +1 -0
- package/esm/device/browser.js +50 -50
- package/esm/device/browser.js.map +1 -0
- package/esm/device/camera.d.ts +8 -7
- package/esm/device/camera.d.ts.map +1 -0
- package/esm/device/camera.js +169 -174
- package/esm/device/camera.js.map +1 -0
- package/esm/device/index.d.ts +6 -5
- package/esm/device/index.d.ts.map +1 -0
- package/esm/device/index.js +212 -211
- package/esm/device/index.js.map +1 -0
- package/esm/device/os.d.ts +12 -11
- package/esm/device/os.d.ts.map +1 -0
- package/esm/device/os.js +28 -27
- package/esm/device/os.js.map +1 -0
- package/esm/email/index.d.ts +9 -8
- package/esm/email/index.d.ts.map +1 -0
- package/esm/email/index.js +32 -31
- package/esm/email/index.js.map +1 -0
- package/esm/file/createDir.d.ts +6 -5
- package/esm/file/createDir.d.ts.map +1 -0
- package/esm/file/createDir.js +14 -12
- package/esm/file/createDir.js.map +1 -0
- package/esm/file/detectPrivateKey.d.ts +6 -5
- package/esm/file/detectPrivateKey.d.ts.map +1 -0
- package/esm/file/detectPrivateKey.js +23 -22
- package/esm/file/detectPrivateKey.js.map +1 -0
- package/esm/file/detectPrivateKeyByFilePath.d.ts +3 -2
- package/esm/file/detectPrivateKeyByFilePath.d.ts.map +1 -0
- package/esm/file/detectPrivateKeyByFilePath.js +33 -30
- package/esm/file/detectPrivateKeyByFilePath.js.map +1 -0
- package/esm/file/fileMove.d.ts +5 -4
- package/esm/file/fileMove.d.ts.map +1 -0
- package/esm/file/fileMove.js +29 -28
- package/esm/file/fileMove.js.map +1 -0
- package/esm/file/findFilesByExt.d.ts +14 -13
- package/esm/file/findFilesByExt.d.ts.map +1 -0
- package/esm/file/findFilesByExt.js +46 -45
- package/esm/file/findFilesByExt.js.map +1 -0
- package/esm/file/getAllFiles.d.ts +2 -1
- package/esm/file/getAllFiles.d.ts.map +1 -0
- package/esm/file/getAllFiles.js +33 -32
- package/esm/file/getAllFiles.js.map +1 -0
- package/esm/file/index.d.ts +10 -9
- package/esm/file/index.d.ts.map +1 -0
- package/esm/file/index.js +6 -5
- package/esm/file/index.js.map +1 -0
- package/esm/file/parseEnvFile.d.ts +9 -8
- package/esm/file/parseEnvFile.d.ts.map +1 -0
- package/esm/file/parseEnvFile.js +38 -37
- package/esm/file/parseEnvFile.js.map +1 -0
- package/esm/gameboi/index.d.ts +12 -12
- package/esm/gameboi/index.d.ts.map +1 -0
- package/esm/gameboi/index.js +67 -66
- package/esm/gameboi/index.js.map +1 -0
- package/esm/html/transform3dToObject.d.ts +6 -5
- package/esm/html/transform3dToObject.d.ts.map +1 -0
- package/esm/html/transform3dToObject.js +10 -9
- package/esm/html/transform3dToObject.js.map +1 -0
- package/esm/images/downloadByUrl.d.ts +17 -16
- package/esm/images/downloadByUrl.d.ts.map +1 -0
- package/esm/images/downloadByUrl.js +74 -73
- package/esm/images/downloadByUrl.js.map +1 -0
- package/esm/images/getImageDimensions.d.ts +5 -4
- package/esm/images/getImageDimensions.d.ts.map +1 -0
- package/esm/images/getImageDimensions.js +17 -16
- package/esm/images/getImageDimensions.js.map +1 -0
- package/esm/images/getUrlBypassCors.d.ts +3 -2
- package/esm/images/getUrlBypassCors.d.ts.map +1 -0
- package/esm/images/getUrlBypassCors.js +13 -12
- package/esm/images/getUrlBypassCors.js.map +1 -0
- package/esm/images/index.d.ts +3 -2
- package/esm/images/index.d.ts.map +1 -0
- package/esm/images/index.js +4 -3
- package/esm/images/index.js.map +1 -0
- package/esm/images/loadImage.d.ts +2 -1
- package/esm/images/loadImage.d.ts.map +1 -0
- package/esm/images/loadImage.js +15 -14
- package/esm/images/loadImage.js.map +1 -0
- package/esm/images/loadImageAsBlobUrl.d.ts +2 -1
- package/esm/images/loadImageAsBlobUrl.d.ts.map +1 -0
- package/esm/images/loadImageAsBlobUrl.js +32 -31
- package/esm/images/loadImageAsBlobUrl.js.map +1 -0
- package/esm/images/resize.d.ts +4 -3
- package/esm/images/resize.d.ts.map +1 -0
- package/esm/images/resize.js +34 -33
- package/esm/images/resize.js.map +1 -0
- package/esm/images/upload.d.ts +11 -10
- package/esm/images/upload.d.ts.map +1 -0
- package/esm/images/upload.js +20 -19
- package/esm/images/upload.js.map +1 -0
- package/esm/index.d.ts +33 -37
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +39 -37
- package/esm/index.js.map +1 -0
- package/esm/json.d.ts +9 -8
- package/esm/json.d.ts.map +1 -0
- package/esm/json.js +28 -27
- package/esm/json.js.map +1 -0
- package/esm/lib/batchProcessor.d.ts +2 -1
- package/esm/lib/batchProcessor.d.ts.map +1 -0
- package/esm/lib/batchProcessor.js +14 -13
- package/esm/lib/batchProcessor.js.map +1 -0
- package/esm/math/angleBetweenPoints.d.ts +20 -0
- package/esm/math/angleBetweenPoints.d.ts.map +1 -0
- package/esm/math/angleBetweenPoints.js +26 -0
- package/esm/math/angleBetweenPoints.js.map +1 -0
- package/esm/math/clamp.d.ts +18 -0
- package/esm/math/clamp.d.ts.map +1 -0
- package/esm/math/clamp.js +21 -0
- package/esm/math/clamp.js.map +1 -0
- package/esm/math/degToRad.d.ts +15 -0
- package/esm/math/degToRad.d.ts.map +1 -0
- package/esm/math/degToRad.js +21 -0
- package/esm/math/degToRad.js.map +1 -0
- package/esm/math/diffDate.d.ts +6 -5
- package/esm/math/diffDate.d.ts.map +1 -0
- package/esm/math/diffDate.js +10 -9
- package/esm/math/diffDate.js.map +1 -0
- package/esm/math/distance.d.ts +18 -0
- package/esm/math/distance.d.ts.map +1 -0
- package/esm/math/distance.js +21 -0
- package/esm/math/distance.js.map +1 -0
- package/esm/math/index.d.ts +25 -30
- package/esm/math/index.d.ts.map +1 -0
- package/esm/math/index.js +25 -77
- package/esm/math/index.js.map +1 -0
- package/esm/math/lerp.d.ts +19 -0
- package/esm/math/lerp.d.ts.map +1 -0
- package/esm/math/lerp.js +21 -0
- package/esm/math/lerp.js.map +1 -0
- package/esm/math/positiveNumber.d.ts +3 -2
- package/esm/math/positiveNumber.d.ts.map +1 -0
- package/esm/math/positiveNumber.js +13 -12
- package/esm/math/positiveNumber.js.map +1 -0
- package/esm/math/radToDeg.d.ts +15 -0
- package/esm/math/radToDeg.d.ts.map +1 -0
- package/esm/math/radToDeg.js +21 -0
- package/esm/math/radToDeg.js.map +1 -0
- package/esm/math/random.d.ts +15 -0
- package/esm/math/random.d.ts.map +1 -0
- package/esm/math/random.js +17 -0
- package/esm/math/random.js.map +1 -0
- package/esm/math/randomFloat.d.ts +15 -0
- package/esm/math/randomFloat.d.ts.map +1 -0
- package/esm/math/randomFloat.js +17 -0
- package/esm/math/randomFloat.js.map +1 -0
- package/esm/math/randomInt.d.ts +15 -0
- package/esm/math/randomInt.d.ts.map +1 -0
- package/esm/math/randomInt.js +17 -0
- package/esm/math/randomInt.js.map +1 -0
- package/esm/math/round.d.ts +17 -0
- package/esm/math/round.d.ts.map +1 -0
- package/esm/math/round.js +20 -0
- package/esm/math/round.js.map +1 -0
- package/esm/name/en.d.ts +6 -5
- package/esm/name/en.d.ts.map +1 -0
- package/esm/name/en.js +26 -21
- package/esm/name/en.js.map +1 -0
- package/esm/name/index.d.ts +13 -12
- package/esm/name/index.d.ts.map +1 -0
- package/esm/name/index.js +6 -5
- package/esm/name/index.js.map +1 -0
- package/esm/name/vi.d.ts +6 -5
- package/esm/name/vi.d.ts.map +1 -0
- package/esm/name/vi.js +24 -23
- package/esm/name/vi.js.map +1 -0
- package/esm/object/deepClone.d.ts +18 -0
- package/esm/object/deepClone.d.ts.map +1 -0
- package/esm/object/deepClone.js +41 -0
- package/esm/object/deepClone.js.map +1 -0
- package/esm/object/index.d.ts +19 -0
- package/esm/object/index.d.ts.map +1 -0
- package/esm/object/index.js +19 -0
- package/esm/object/index.js.map +1 -0
- package/esm/object/isEmpty.d.ts +20 -0
- package/esm/object/isEmpty.d.ts.map +1 -0
- package/esm/object/isEmpty.js +31 -0
- package/esm/object/isEmpty.js.map +1 -0
- package/esm/object/isEqual.d.ts +19 -0
- package/esm/object/isEqual.d.ts.map +1 -0
- package/esm/object/isEqual.js +54 -0
- package/esm/object/isEqual.js.map +1 -0
- package/esm/object/isNull.d.ts +21 -0
- package/esm/object/isNull.d.ts.map +1 -0
- package/esm/object/isNull.js +44 -0
- package/esm/object/isNull.js.map +1 -0
- package/esm/object/isObject.d.ts +19 -0
- package/esm/object/isObject.d.ts.map +1 -0
- package/esm/object/isObject.js +21 -0
- package/esm/object/isObject.js.map +1 -0
- package/esm/object/iterate.d.ts +20 -0
- package/esm/object/iterate.d.ts.map +1 -0
- package/esm/object/iterate.js +32 -0
- package/esm/object/iterate.js.map +1 -0
- package/esm/object/merge.d.ts +18 -0
- package/esm/object/merge.d.ts.map +1 -0
- package/esm/object/merge.js +40 -0
- package/esm/object/merge.js.map +1 -0
- package/esm/object/omit.d.ts +17 -0
- package/esm/object/omit.d.ts.map +1 -0
- package/esm/object/omit.js +28 -0
- package/esm/object/omit.js.map +1 -0
- package/esm/object/pick.d.ts +17 -0
- package/esm/object/pick.d.ts.map +1 -0
- package/esm/object/pick.js +27 -0
- package/esm/object/pick.js.map +1 -0
- package/esm/object/toArray.d.ts +20 -0
- package/esm/object/toArray.d.ts.map +1 -0
- package/esm/object/toArray.js +29 -0
- package/esm/object/toArray.js.map +1 -0
- package/esm/object/toBool.d.ts +21 -0
- package/esm/object/toBool.d.ts.map +1 -0
- package/esm/object/toBool.js +35 -0
- package/esm/object/toBool.js.map +1 -0
- package/esm/object/toFloat.d.ts +19 -0
- package/esm/object/toFloat.d.ts.map +1 -0
- package/esm/object/toFloat.js +26 -0
- package/esm/object/toFloat.js.map +1 -0
- package/esm/object/toInt.d.ts +19 -0
- package/esm/object/toInt.d.ts.map +1 -0
- package/esm/object/toInt.js +26 -0
- package/esm/object/toInt.js.map +1 -0
- package/esm/object/toObject.d.ts +18 -0
- package/esm/object/toObject.d.ts.map +1 -0
- package/esm/object/toObject.js +29 -0
- package/esm/object/toObject.js.map +1 -0
- package/esm/object.d.ts +35 -34
- package/esm/object.d.ts.map +1 -0
- package/esm/object.js +108 -107
- package/esm/object.js.map +1 -0
- package/esm/permission/index.d.ts +9 -8
- package/esm/permission/index.d.ts.map +1 -0
- package/esm/permission/index.js +5 -4
- package/esm/permission/index.js.map +1 -0
- package/esm/permission/requestCamera.d.ts +6 -5
- package/esm/permission/requestCamera.d.ts.map +1 -0
- package/esm/permission/requestCamera.js +39 -38
- package/esm/permission/requestCamera.js.map +1 -0
- package/esm/permission/requestDeviceOrientationControl.d.ts +3 -2
- package/esm/permission/requestDeviceOrientationControl.d.ts.map +1 -0
- package/esm/permission/requestDeviceOrientationControl.js +35 -34
- package/esm/permission/requestDeviceOrientationControl.js.map +1 -0
- package/esm/response/index.d.ts +50 -49
- package/esm/response/index.d.ts.map +1 -0
- package/esm/response/index.js +61 -60
- package/esm/response/index.js.map +1 -0
- package/esm/string/convertPathnameAndQuery.d.ts +5 -4
- package/esm/string/convertPathnameAndQuery.d.ts.map +1 -0
- package/esm/string/convertPathnameAndQuery.js +22 -21
- package/esm/string/convertPathnameAndQuery.js.map +1 -0
- package/esm/string/formatBytes.d.ts +2 -1
- package/esm/string/formatBytes.d.ts.map +1 -0
- package/esm/string/formatBytes.js +15 -14
- package/esm/string/formatBytes.js.map +1 -0
- package/esm/string/formatNumber.d.ts +7 -6
- package/esm/string/formatNumber.d.ts.map +1 -0
- package/esm/string/formatNumber.js +11 -10
- package/esm/string/formatNumber.js.map +1 -0
- package/esm/string/generatePassword.d.ts +10 -9
- package/esm/string/generatePassword.d.ts.map +1 -0
- package/esm/string/generatePassword.js +23 -19
- package/esm/string/generatePassword.js.map +1 -0
- package/esm/string/generateUUID.d.ts +3 -2
- package/esm/string/generateUUID.d.ts.map +1 -0
- package/esm/string/generateUUID.js +33 -32
- package/esm/string/generateUUID.js.map +1 -0
- package/esm/string/getIntFromNextJsRouter.d.ts +2 -1
- package/esm/string/getIntFromNextJsRouter.d.ts.map +1 -0
- package/esm/string/getIntFromNextJsRouter.js +8 -7
- package/esm/string/getIntFromNextJsRouter.js.map +1 -0
- package/esm/string/getStringFromNextJsRouter.d.ts +2 -1
- package/esm/string/getStringFromNextJsRouter.d.ts.map +1 -0
- package/esm/string/getStringFromNextJsRouter.js +8 -7
- package/esm/string/getStringFromNextJsRouter.js.map +1 -0
- package/esm/string/getTextBetweenCharByIndex.d.ts +2 -1
- package/esm/string/getTextBetweenCharByIndex.d.ts.map +1 -0
- package/esm/string/getTextBetweenCharByIndex.js +15 -14
- package/esm/string/getTextBetweenCharByIndex.js.map +1 -0
- package/esm/string/guessMimeType.d.ts +3 -2
- package/esm/string/guessMimeType.d.ts.map +1 -0
- package/esm/string/guessMimeType.js +74 -73
- package/esm/string/guessMimeType.js.map +1 -0
- package/esm/string/guessMimeTypeByBuffer.d.ts +2 -3
- package/esm/string/guessMimeTypeByBuffer.d.ts.map +1 -0
- package/esm/string/guessMimeTypeByBuffer.js +37 -36
- package/esm/string/guessMimeTypeByBuffer.js.map +1 -0
- package/esm/string/index.d.ts +66 -65
- package/esm/string/index.d.ts.map +1 -0
- package/esm/string/index.js +151 -150
- package/esm/string/index.js.map +1 -0
- package/esm/string/indexesOf.d.ts +2 -1
- package/esm/string/indexesOf.d.ts.map +1 -0
- package/esm/string/indexesOf.js +12 -11
- package/esm/string/indexesOf.js.map +1 -0
- package/esm/string/makeDaySlug.d.ts +28 -27
- package/esm/string/makeDaySlug.d.ts.map +1 -0
- package/esm/string/makeDaySlug.js +12 -11
- package/esm/string/makeDaySlug.js.map +1 -0
- package/esm/string/makeSlug.d.ts +4 -3
- package/esm/string/makeSlug.d.ts.map +1 -0
- package/esm/string/makeSlug.js +4 -3
- package/esm/string/makeSlug.js.map +1 -0
- package/esm/string/padNumberWithLeadingZeros.d.ts +2 -1
- package/esm/string/padNumberWithLeadingZeros.d.ts.map +1 -0
- package/esm/string/padNumberWithLeadingZeros.js +10 -9
- package/esm/string/padNumberWithLeadingZeros.js.map +1 -0
- package/esm/string/random.d.ts +21 -20
- package/esm/string/random.d.ts.map +1 -0
- package/esm/string/random.js +43 -42
- package/esm/string/random.js.map +1 -0
- package/esm/string/trimNull.d.ts +3 -2
- package/esm/string/trimNull.d.ts.map +1 -0
- package/esm/string/trimNull.js +14 -13
- package/esm/string/trimNull.js.map +1 -0
- package/esm/string/url.d.ts +29 -28
- package/esm/string/url.d.ts.map +1 -0
- package/esm/string/url.js +108 -105
- package/esm/string/url.js.map +1 -0
- package/esm/xconsole/enableConsole.d.ts +3 -2
- package/esm/xconsole/enableConsole.d.ts.map +1 -0
- package/esm/xconsole/enableConsole.js +7 -6
- package/esm/xconsole/enableConsole.js.map +1 -0
- package/esm/xconsole/index.d.ts +12 -11
- package/esm/xconsole/index.d.ts.map +1 -0
- package/esm/xconsole/index.js +14 -13
- package/esm/xconsole/index.js.map +1 -0
- package/esm/xconsole/log.d.ts +16 -15
- package/esm/xconsole/log.d.ts.map +1 -0
- package/esm/xconsole/log.js +33 -32
- package/esm/xconsole/log.js.map +1 -0
- package/package.json +77 -28
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sorts an array of objects by a numeric property in ascending order.
|
|
3
|
+
* Creates a new sorted array without modifying the original.
|
|
4
|
+
*
|
|
5
|
+
* @template T - The type of elements in the array
|
|
6
|
+
* @param array - The array to sort
|
|
7
|
+
* @param key - The property key to sort by
|
|
8
|
+
* @returns A new sorted array
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const items = [
|
|
13
|
+
* { value: 30 },
|
|
14
|
+
* { value: 10 },
|
|
15
|
+
* { value: 20 }
|
|
16
|
+
* ];
|
|
17
|
+
* sortByNumber(items, 'value');
|
|
18
|
+
* // [{ value: 10 }, { value: 20 }, { value: 30 }]
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function sortByNumber<T extends Record<string, unknown>>(array: T[], key: keyof T): T[];
|
|
22
|
+
//# sourceMappingURL=sortByNumber.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sortByNumber.d.ts","sourceRoot":"","sources":["../../src/array/sortByNumber.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAU7F"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sortByNumber = sortByNumber;
|
|
4
|
+
/**
|
|
5
|
+
* Sorts an array of objects by a numeric property in ascending order.
|
|
6
|
+
* Creates a new sorted array without modifying the original.
|
|
7
|
+
*
|
|
8
|
+
* @template T - The type of elements in the array
|
|
9
|
+
* @param array - The array to sort
|
|
10
|
+
* @param key - The property key to sort by
|
|
11
|
+
* @returns A new sorted array
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const items = [
|
|
16
|
+
* { value: 30 },
|
|
17
|
+
* { value: 10 },
|
|
18
|
+
* { value: 20 }
|
|
19
|
+
* ];
|
|
20
|
+
* sortByNumber(items, 'value');
|
|
21
|
+
* // [{ value: 10 }, { value: 20 }, { value: 30 }]
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
function sortByNumber(array, key) {
|
|
25
|
+
if (!Array.isArray(array)) {
|
|
26
|
+
return [];
|
|
27
|
+
}
|
|
28
|
+
return [...array].sort((a, b) => {
|
|
29
|
+
const valueA = Number(a[key]) || 0;
|
|
30
|
+
const valueB = Number(b[key]) || 0;
|
|
31
|
+
return valueA - valueB;
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=sortByNumber.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sortByNumber.js","sourceRoot":"","sources":["../../src/array/sortByNumber.ts"],"names":[],"mappings":";;AAoBA,oCAUC;AA9BD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,YAAY,CAAoC,KAAU,EAAE,GAAY;IACvF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO,EAAE,CAAC;IACX,CAAC;IAED,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC/B,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;QACnC,MAAM,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC;QACnC,OAAO,MAAM,GAAG,MAAM,CAAC;IACxB,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Sorts an array of objects by a string property in ascending order.
|
|
3
|
+
* Creates a new sorted array without modifying the original.
|
|
4
|
+
*
|
|
5
|
+
* @template T - The type of elements in the array
|
|
6
|
+
* @param array - The array to sort
|
|
7
|
+
* @param key - The property key to sort by
|
|
8
|
+
* @returns A new sorted array
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const users = [
|
|
13
|
+
* { name: 'Charlie' },
|
|
14
|
+
* { name: 'Alice' },
|
|
15
|
+
* { name: 'Bob' }
|
|
16
|
+
* ];
|
|
17
|
+
* sortByString(users, 'name');
|
|
18
|
+
* // [{ name: 'Alice' }, { name: 'Bob' }, { name: 'Charlie' }]
|
|
19
|
+
* ```
|
|
20
|
+
*/
|
|
21
|
+
export declare function sortByString<T extends Record<string, unknown>>(array: T[], key: keyof T): T[];
|
|
22
|
+
//# sourceMappingURL=sortByString.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sortByString.d.ts","sourceRoot":"","sources":["../../src/array/sortByString.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,GAAG,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAY7F"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sortByString = sortByString;
|
|
4
|
+
/**
|
|
5
|
+
* Sorts an array of objects by a string property in ascending order.
|
|
6
|
+
* Creates a new sorted array without modifying the original.
|
|
7
|
+
*
|
|
8
|
+
* @template T - The type of elements in the array
|
|
9
|
+
* @param array - The array to sort
|
|
10
|
+
* @param key - The property key to sort by
|
|
11
|
+
* @returns A new sorted array
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* const users = [
|
|
16
|
+
* { name: 'Charlie' },
|
|
17
|
+
* { name: 'Alice' },
|
|
18
|
+
* { name: 'Bob' }
|
|
19
|
+
* ];
|
|
20
|
+
* sortByString(users, 'name');
|
|
21
|
+
* // [{ name: 'Alice' }, { name: 'Bob' }, { name: 'Charlie' }]
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
24
|
+
function sortByString(array, key) {
|
|
25
|
+
if (!Array.isArray(array)) {
|
|
26
|
+
return [];
|
|
27
|
+
}
|
|
28
|
+
return [...array].sort((a, b) => {
|
|
29
|
+
var _a, _b;
|
|
30
|
+
const valueA = String((_a = a[key]) !== null && _a !== void 0 ? _a : "").toUpperCase();
|
|
31
|
+
const valueB = String((_b = b[key]) !== null && _b !== void 0 ? _b : "").toUpperCase();
|
|
32
|
+
if (valueA === valueB)
|
|
33
|
+
return 0;
|
|
34
|
+
return valueA > valueB ? 1 : -1;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=sortByString.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sortByString.js","sourceRoot":"","sources":["../../src/array/sortByString.ts"],"names":[],"mappings":";;AAoBA,oCAYC;AAhCD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,SAAgB,YAAY,CAAoC,KAAU,EAAE,GAAY;IACvF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QAC3B,OAAO,EAAE,CAAC;IACX,CAAC;IAED,OAAO,CAAC,GAAG,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;;QAC/B,MAAM,MAAM,GAAG,MAAM,CAAC,MAAA,CAAC,CAAC,GAAG,CAAC,mCAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;QAClD,MAAM,MAAM,GAAG,MAAM,CAAC,MAAA,CAAC,CAAC,GAAG,CAAC,mCAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;QAElD,IAAI,MAAM,KAAK,MAAM;YAAE,OAAO,CAAC,CAAC;QAChC,OAAO,MAAM,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACjC,CAAC,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Calculates the sum of all elements in an array.
|
|
3
|
+
* If a key is provided, sums the values of that property from each object.
|
|
4
|
+
*
|
|
5
|
+
* @template T - The type of elements in the array
|
|
6
|
+
* @param array - The array to sum
|
|
7
|
+
* @param key - Optional key to sum values from objects
|
|
8
|
+
* @returns The sum of all values, or 0 if array is empty
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* sum([1, 2, 3, 4]); // 10
|
|
13
|
+
* sum([{ value: 5 }, { value: 10 }], 'value'); // 15
|
|
14
|
+
* sum([]); // 0
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function sum<T = number>(array: T[], key?: keyof T): number;
|
|
18
|
+
//# sourceMappingURL=sum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sum.d.ts","sourceRoot":"","sources":["../../src/array/sum.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,GAAG,CAAC,CAAC,GAAG,MAAM,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,MAAM,CAajE"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sum = sum;
|
|
4
|
+
/**
|
|
5
|
+
* Calculates the sum of all elements in an array.
|
|
6
|
+
* If a key is provided, sums the values of that property from each object.
|
|
7
|
+
*
|
|
8
|
+
* @template T - The type of elements in the array
|
|
9
|
+
* @param array - The array to sum
|
|
10
|
+
* @param key - Optional key to sum values from objects
|
|
11
|
+
* @returns The sum of all values, or 0 if array is empty
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* sum([1, 2, 3, 4]); // 10
|
|
16
|
+
* sum([{ value: 5 }, { value: 10 }], 'value'); // 15
|
|
17
|
+
* sum([]); // 0
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
function sum(array, key) {
|
|
21
|
+
if (!Array.isArray(array) || array.length === 0) {
|
|
22
|
+
return 0;
|
|
23
|
+
}
|
|
24
|
+
if (key !== undefined) {
|
|
25
|
+
return array.reduce((acc, item) => {
|
|
26
|
+
const value = item[key];
|
|
27
|
+
return acc + (typeof value === "number" ? value : 0);
|
|
28
|
+
}, 0);
|
|
29
|
+
}
|
|
30
|
+
return array.reduce((acc, value) => acc + (typeof value === "number" ? value : 0), 0);
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=sum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sum.js","sourceRoot":"","sources":["../../src/array/sum.ts"],"names":[],"mappings":";;AAgBA,kBAaC;AA7BD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,GAAG,CAAa,KAAU,EAAE,GAAa;IACxD,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACjD,OAAO,CAAC,CAAC;IACV,CAAC;IAED,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACvB,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACjC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YACxB,OAAO,GAAG,GAAG,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QACtD,CAAC,EAAE,CAAC,CAAC,CAAC;IACP,CAAC;IAED,OAAQ,KAAkB,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACrG,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates an array of unique values from all given arrays.
|
|
3
|
+
*
|
|
4
|
+
* @template T - The type of elements in the arrays
|
|
5
|
+
* @param arrays - Arrays to combine
|
|
6
|
+
* @returns A new array with all unique values from all arrays
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* union([1, 2], [2, 3], [3, 4]); // [1, 2, 3, 4]
|
|
11
|
+
* union(['a'], ['b'], ['a', 'c']); // ['a', 'b', 'c']
|
|
12
|
+
* ```
|
|
13
|
+
*/
|
|
14
|
+
export declare function union<T>(...arrays: T[][]): T[];
|
|
15
|
+
//# sourceMappingURL=union.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"union.d.ts","sourceRoot":"","sources":["../../src/array/union.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,CAM9C"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.union = union;
|
|
4
|
+
/**
|
|
5
|
+
* Creates an array of unique values from all given arrays.
|
|
6
|
+
*
|
|
7
|
+
* @template T - The type of elements in the arrays
|
|
8
|
+
* @param arrays - Arrays to combine
|
|
9
|
+
* @returns A new array with all unique values from all arrays
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* union([1, 2], [2, 3], [3, 4]); // [1, 2, 3, 4]
|
|
14
|
+
* union(['a'], ['b'], ['a', 'c']); // ['a', 'b', 'c']
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
function union(...arrays) {
|
|
18
|
+
if (!arrays || arrays.length === 0) {
|
|
19
|
+
return [];
|
|
20
|
+
}
|
|
21
|
+
return Array.from(new Set(arrays.flat()));
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=union.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"union.js","sourceRoot":"","sources":["../../src/array/union.ts"],"names":[],"mappings":";;AAaA,sBAMC;AAnBD;;;;;;;;;;;;GAYG;AACH,SAAgB,KAAK,CAAI,GAAG,MAAa;IACxC,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACpC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates an array of unique values from one or more arrays.
|
|
3
|
+
* If a key is provided, uniqueness is determined by that property.
|
|
4
|
+
*
|
|
5
|
+
* @template T - The type of elements in the arrays
|
|
6
|
+
* @param arrays - One or more arrays to combine and make unique
|
|
7
|
+
* @param key - Optional key to determine uniqueness for objects
|
|
8
|
+
* @returns A new array with unique values
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* unique([1, 2, 2, 3, 3, 4]); // [1, 2, 3, 4]
|
|
13
|
+
* unique([1, 2], [2, 3], [3, 4]); // [1, 2, 3, 4]
|
|
14
|
+
* unique([{ id: 1 }, { id: 1 }, { id: 2 }], 'id'); // [{ id: 1 }, { id: 2 }]
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
export declare function unique<T>(arrays: T[] | T[][], key?: keyof T): T[];
|
|
18
|
+
//# sourceMappingURL=unique.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unique.d.ts","sourceRoot":"","sources":["../../src/array/unique.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,GAAG,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAqBjE"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.unique = unique;
|
|
4
|
+
/**
|
|
5
|
+
* Creates an array of unique values from one or more arrays.
|
|
6
|
+
* If a key is provided, uniqueness is determined by that property.
|
|
7
|
+
*
|
|
8
|
+
* @template T - The type of elements in the arrays
|
|
9
|
+
* @param arrays - One or more arrays to combine and make unique
|
|
10
|
+
* @param key - Optional key to determine uniqueness for objects
|
|
11
|
+
* @returns A new array with unique values
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```ts
|
|
15
|
+
* unique([1, 2, 2, 3, 3, 4]); // [1, 2, 3, 4]
|
|
16
|
+
* unique([1, 2], [2, 3], [3, 4]); // [1, 2, 3, 4]
|
|
17
|
+
* unique([{ id: 1 }, { id: 1 }, { id: 2 }], 'id'); // [{ id: 1 }, { id: 2 }]
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
function unique(arrays, key) {
|
|
21
|
+
// Flatten if multiple arrays provided
|
|
22
|
+
const flatArray = Array.isArray(arrays[0]) && arrays.length > 1 ? arrays.flat() : arrays;
|
|
23
|
+
if (!Array.isArray(flatArray) || flatArray.length === 0) {
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
if (key !== undefined) {
|
|
27
|
+
const seen = new Set();
|
|
28
|
+
return flatArray.filter((item) => {
|
|
29
|
+
const value = item[key];
|
|
30
|
+
if (seen.has(value)) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
seen.add(value);
|
|
34
|
+
return true;
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
return Array.from(new Set(flatArray));
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=unique.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unique.js","sourceRoot":"","sources":["../../src/array/unique.ts"],"names":[],"mappings":";;AAgBA,wBAqBC;AArCD;;;;;;;;;;;;;;;GAeG;AACH,SAAgB,MAAM,CAAI,MAAmB,EAAE,GAAa;IAC3D,sCAAsC;IACtC,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAE,MAAgB,CAAC,IAAI,EAAE,CAAC,CAAC,CAAE,MAAc,CAAC;IAE7G,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACzD,OAAO,EAAE,CAAC;IACX,CAAC;IAED,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACvB,MAAM,IAAI,GAAG,IAAI,GAAG,EAAW,CAAC;QAChC,OAAO,SAAS,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;YAChC,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YACxB,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;gBACrB,OAAO,KAAK,CAAC;YACd,CAAC;YACD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAChB,OAAO,IAAI,CAAC;QACb,CAAC,CAAC,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,CAAC;AACvC,CAAC"}
|
package/dist/array.d.ts
CHANGED
|
@@ -1,113 +1,114 @@
|
|
|
1
|
-
export declare const sumArray: (array: [], key: string) => number;
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @param {Array} array
|
|
5
|
-
* @param {string} key
|
|
6
|
-
* @returns {Number}
|
|
7
|
-
*/
|
|
8
|
-
export declare const averageArray: (array: [], key: string) => number;
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
* @param {Array} array
|
|
12
|
-
* @param {string} key
|
|
13
|
-
* @returns {Number}
|
|
14
|
-
*/
|
|
15
|
-
export declare const minArray: (array: [], key: string) => number;
|
|
16
|
-
/**
|
|
17
|
-
*
|
|
18
|
-
* @param {Array} array
|
|
19
|
-
* @param {string} key
|
|
20
|
-
* @returns {Number}
|
|
21
|
-
*/
|
|
22
|
-
export declare const maxArray: (array: [], key: string) => number;
|
|
23
|
-
/**
|
|
24
|
-
*
|
|
25
|
-
* @param {Array} array
|
|
26
|
-
* @param {string} key
|
|
27
|
-
* @returns {Array}
|
|
28
|
-
*/
|
|
29
|
-
export declare const sortElementByString: (array: any, key: string) => any[]
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @param {Array} array
|
|
33
|
-
* @param {string} key
|
|
34
|
-
* @returns {Array}
|
|
35
|
-
*/
|
|
36
|
-
export declare const sortElementByNumber: (array: any, key: string) => any[]
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @param {Array} array
|
|
40
|
-
* @returns {any}
|
|
41
|
-
*/
|
|
42
|
-
export declare const firstElement: (array: any[]) => any;
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @param {Array} array
|
|
46
|
-
* @returns {any}
|
|
47
|
-
*/
|
|
48
|
-
export declare const lastElement: (array: any[]) => any;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @param {Array} array
|
|
52
|
-
* @returns {any}
|
|
53
|
-
*/
|
|
54
|
-
export declare const randomIndex: (array: any[]) => number;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @param {Array} array
|
|
58
|
-
* @returns {any}
|
|
59
|
-
*/
|
|
60
|
-
export declare const randomElement: (array: any[]) => any;
|
|
61
|
-
/**
|
|
62
|
-
* Remove same elements from 2 arrays
|
|
63
|
-
*/
|
|
64
|
-
export declare const mergeAndMakeUniqueElement: (list1: any[], list2: any[], key: string) => any[] | undefined;
|
|
65
|
-
/**
|
|
66
|
-
* check target == toMatch
|
|
67
|
-
* @param {Array} target
|
|
68
|
-
* @param {Array} toMatch
|
|
69
|
-
* @returns {Boolean}
|
|
70
|
-
*/
|
|
71
|
-
export declare const allMatchInArray: (target: any[], toMatch: any[]) => boolean;
|
|
72
|
-
export declare const removeItem: (item: any, array: any[]) => any[];
|
|
73
|
-
export declare const removeItemByKey: (key: string, value: any, array: any[]) => any[];
|
|
74
|
-
export declare const getRandom: (array: any[], n?: number) => any[];
|
|
75
|
-
/**
|
|
76
|
-
* Get an array with shuffle element
|
|
77
|
-
*/
|
|
78
|
-
export declare const getHalfRandom: (array: any[], n: number) => any[];
|
|
79
|
-
/**
|
|
80
|
-
* Make array shuffle itself
|
|
81
|
-
*/
|
|
82
|
-
export declare const shuffle: (array: any[]) => any[];
|
|
83
|
-
/**
|
|
84
|
-
*
|
|
85
|
-
* @param {Array} array
|
|
86
|
-
* @param {Number} oldIndex
|
|
87
|
-
* @param {Number} newIndex
|
|
88
|
-
* @returns {Array}
|
|
89
|
-
*/
|
|
90
|
-
export declare const moveIndex: (array: any[], oldIndex: number, newIndex: number) => any[];
|
|
91
|
-
export declare const moveArray: (array: any[], oldIndex: number, newIndex: number) => any[];
|
|
92
|
-
declare const xarray: {
|
|
93
|
-
sumArray: (array: [], key: string) => number;
|
|
94
|
-
averageArray: (array: [], key: string) => number;
|
|
95
|
-
minArray: (array: [], key: string) => number;
|
|
96
|
-
maxArray: (array: [], key: string) => number;
|
|
97
|
-
sortElementByString: (array: any, key: string) => any[]
|
|
98
|
-
sortElementByNumber: (array: any, key: string) => any[]
|
|
99
|
-
firstElement: (array: any[]) => any;
|
|
100
|
-
lastElement: (array: any[]) => any;
|
|
101
|
-
randomIndex: (array: any[]) => number;
|
|
102
|
-
randomElement: (array: any[]) => any;
|
|
103
|
-
mergeAndMakeUniqueElement: (list1: any[], list2: any[], key: string) => any[] | undefined;
|
|
104
|
-
allMatchInArray: (target: any[], toMatch: any[]) => boolean;
|
|
105
|
-
removeItem: (item: any, array: any[]) => any[];
|
|
106
|
-
removeItemByKey: (key: string, value: any, array: any[]) => any[];
|
|
107
|
-
getRandom: (array: any[], n?: number) => any[];
|
|
108
|
-
getHalfRandom: (array: any[], n: number) => any[];
|
|
109
|
-
shuffle: (array: any[]) => any[];
|
|
110
|
-
moveIndex: (array: any[], oldIndex: number, newIndex: number) => any[];
|
|
111
|
-
moveArray: (array: any[], oldIndex: number, newIndex: number) => any[];
|
|
112
|
-
};
|
|
113
|
-
export default xarray;
|
|
1
|
+
export declare const sumArray: (array: [], key: string) => number;
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param {Array} array
|
|
5
|
+
* @param {string} key
|
|
6
|
+
* @returns {Number}
|
|
7
|
+
*/
|
|
8
|
+
export declare const averageArray: (array: [], key: string) => number;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
* @param {Array} array
|
|
12
|
+
* @param {string} key
|
|
13
|
+
* @returns {Number}
|
|
14
|
+
*/
|
|
15
|
+
export declare const minArray: (array: [], key: string) => number;
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @param {Array} array
|
|
19
|
+
* @param {string} key
|
|
20
|
+
* @returns {Number}
|
|
21
|
+
*/
|
|
22
|
+
export declare const maxArray: (array: [], key: string) => number;
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @param {Array} array
|
|
26
|
+
* @param {string} key
|
|
27
|
+
* @returns {Array}
|
|
28
|
+
*/
|
|
29
|
+
export declare const sortElementByString: (array: any, key: string) => any[];
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @param {Array} array
|
|
33
|
+
* @param {string} key
|
|
34
|
+
* @returns {Array}
|
|
35
|
+
*/
|
|
36
|
+
export declare const sortElementByNumber: (array: any, key: string) => any[];
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @param {Array} array
|
|
40
|
+
* @returns {any}
|
|
41
|
+
*/
|
|
42
|
+
export declare const firstElement: (array: any[]) => any;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @param {Array} array
|
|
46
|
+
* @returns {any}
|
|
47
|
+
*/
|
|
48
|
+
export declare const lastElement: (array: any[]) => any;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @param {Array} array
|
|
52
|
+
* @returns {any}
|
|
53
|
+
*/
|
|
54
|
+
export declare const randomIndex: (array: any[]) => number;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @param {Array} array
|
|
58
|
+
* @returns {any}
|
|
59
|
+
*/
|
|
60
|
+
export declare const randomElement: (array: any[]) => any;
|
|
61
|
+
/**
|
|
62
|
+
* Remove same elements from 2 arrays
|
|
63
|
+
*/
|
|
64
|
+
export declare const mergeAndMakeUniqueElement: (list1: any[], list2: any[], key: string) => any[] | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* check target == toMatch
|
|
67
|
+
* @param {Array} target
|
|
68
|
+
* @param {Array} toMatch
|
|
69
|
+
* @returns {Boolean}
|
|
70
|
+
*/
|
|
71
|
+
export declare const allMatchInArray: (target: any[], toMatch: any[]) => boolean;
|
|
72
|
+
export declare const removeItem: (item: any, array: any[]) => any[];
|
|
73
|
+
export declare const removeItemByKey: (key: string, value: any, array: any[]) => any[];
|
|
74
|
+
export declare const getRandom: (array: any[], n?: number) => any[];
|
|
75
|
+
/**
|
|
76
|
+
* Get an array with shuffle element
|
|
77
|
+
*/
|
|
78
|
+
export declare const getHalfRandom: (array: any[], n: number) => any[];
|
|
79
|
+
/**
|
|
80
|
+
* Make array shuffle itself
|
|
81
|
+
*/
|
|
82
|
+
export declare const shuffle: (array: any[]) => any[];
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @param {Array} array
|
|
86
|
+
* @param {Number} oldIndex
|
|
87
|
+
* @param {Number} newIndex
|
|
88
|
+
* @returns {Array}
|
|
89
|
+
*/
|
|
90
|
+
export declare const moveIndex: (array: any[], oldIndex: number, newIndex: number) => any[];
|
|
91
|
+
export declare const moveArray: (array: any[], oldIndex: number, newIndex: number) => any[];
|
|
92
|
+
declare const xarray: {
|
|
93
|
+
sumArray: (array: [], key: string) => number;
|
|
94
|
+
averageArray: (array: [], key: string) => number;
|
|
95
|
+
minArray: (array: [], key: string) => number;
|
|
96
|
+
maxArray: (array: [], key: string) => number;
|
|
97
|
+
sortElementByString: (array: any, key: string) => any[];
|
|
98
|
+
sortElementByNumber: (array: any, key: string) => any[];
|
|
99
|
+
firstElement: (array: any[]) => any;
|
|
100
|
+
lastElement: (array: any[]) => any;
|
|
101
|
+
randomIndex: (array: any[]) => number;
|
|
102
|
+
randomElement: (array: any[]) => any;
|
|
103
|
+
mergeAndMakeUniqueElement: (list1: any[], list2: any[], key: string) => any[] | undefined;
|
|
104
|
+
allMatchInArray: (target: any[], toMatch: any[]) => boolean;
|
|
105
|
+
removeItem: (item: any, array: any[]) => any[];
|
|
106
|
+
removeItemByKey: (key: string, value: any, array: any[]) => any[];
|
|
107
|
+
getRandom: (array: any[], n?: number) => any[];
|
|
108
|
+
getHalfRandom: (array: any[], n: number) => any[];
|
|
109
|
+
shuffle: (array: any[]) => any[];
|
|
110
|
+
moveIndex: (array: any[], oldIndex: number, newIndex: number) => any[];
|
|
111
|
+
moveArray: (array: any[], oldIndex: number, newIndex: number) => any[];
|
|
112
|
+
};
|
|
113
|
+
export default xarray;
|
|
114
|
+
//# sourceMappingURL=array.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../src/array.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,GAAI,OAAO,EAAE,EAAE,KAAK,MAAM,WAO9C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,EAAE,EAAE,KAAK,MAAM,WAMlD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,EAAE,EAAE,KAAK,MAAM,WAU9C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,GAAI,OAAO,EAAE,EAAE,KAAK,MAAM,WAU9C,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,GAAG,EAAE,KAAK,MAAM,UAS1D,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,GAAG,EAAE,KAAK,MAAM,UAO1D,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,OAAO,GAAG,EAAE,QAGxC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,GAAG,EAAE,QAGvC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,GAAI,OAAO,GAAG,EAAE,WAGvC,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,GAAG,EAAE,QAGzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,GAAI,OAAO,GAAG,EAAE,EAAE,OAAO,GAAG,EAAE,EAAE,KAAK,MAAM,sBAYhF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,QAAQ,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,YAM5D,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,MAAM,GAAG,EAAE,OAAO,GAAG,EAAE,UAQjD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,KAAK,MAAM,EAAE,OAAO,GAAG,EAAE,OAAO,GAAG,EAAE,UAWpE,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,GAAG,EAAE,EAAE,IAAI,MAAM,UAajD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,aAAa,GAAI,OAAO,GAAG,EAAE,EAAE,GAAG,MAAM,UAGpD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,GAAG,EAAE,UAcnC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,GAAG,EAAE,EAAE,UAAU,MAAM,EAAE,UAAU,MAAM,UASzE,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,GAAG,EAAE,EAAE,UAAU,MAAM,EAAE,UAAU,MAAM,UAezE,CAAC;AAEF,QAAA,MAAM,MAAM;sBAtQoB,EAAE,OAAO,MAAM;0BAeX,EAAE,OAAO,MAAM;sBAcnB,EAAE,OAAO,MAAM;sBAkBf,EAAE,OAAO,MAAM;iCAkBJ,GAAG,OAAO,MAAM;iCAiBhB,GAAG,OAAO,MAAM;0BAcvB,GAAG,EAAE;yBAUN,GAAG,EAAE;yBAUL,GAAG,EAAE;2BAUH,GAAG,EAAE;uCAQO,GAAG,EAAE,SAAS,GAAG,EAAE,OAAO,MAAM;8BAoBzC,GAAG,EAAE,WAAW,GAAG,EAAE;uBAQ5B,GAAG,SAAS,GAAG,EAAE;2BAUb,MAAM,SAAS,GAAG,SAAS,GAAG,EAAE;uBAapC,GAAG,EAAE,MAAM,MAAM;2BAkBb,GAAG,EAAE,KAAK,MAAM;qBAQtB,GAAG,EAAE;uBAuBH,GAAG,EAAE,YAAY,MAAM,YAAY,MAAM;uBAWzC,GAAG,EAAE,YAAY,MAAM,YAAY,MAAM;CAqCzE,CAAC;AAEF,eAAe,MAAM,CAAC"}
|