@unicom-cloud/utils 0.1.23 → 0.1.25
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/case-name/index.js +8 -7
- package/caseName.js +8 -7
- package/class-name/index.js +1 -0
- package/className.js +1 -0
- package/clipboard-copy/index.js +8 -8
- package/clipboardCopy.js +3 -3
- package/constant/address.js +1 -0
- package/constant/chineseCharacters.js +1 -0
- package/constant/constellations.js +1 -0
- package/constant/domain.js +1 -0
- package/constant/emoji.js +1 -0
- package/constant/identity.js +1 -0
- package/constant/index.js +1 -0
- package/constant/keyboardCode.js +1 -0
- package/constant/licensePlate.js +1 -0
- package/constant/name.js +1 -0
- package/constant/platform.js +12 -11
- package/constant/protocol.js +1 -0
- package/constant/ui.js +1 -0
- package/constant.js +1 -0
- package/content-disposition/index.js +3 -3
- package/contentDisposition.js +6 -6
- package/cookie/index.js +1 -0
- package/cookie/src/index.js +1 -0
- package/cookie.js +1 -0
- package/date/convertTime.js +1 -0
- package/date/convertToDuration.js +18 -0
- package/date/index.js +10 -19
- package/date.js +8 -6
- package/decimal/decimal.js +24 -23
- package/decimal/index.js +1 -0
- package/decimal.js +1 -0
- package/dom-helpers/activeElement.js +13 -0
- package/dom-helpers/addClass.js +11 -0
- package/dom-helpers/addEventListener.js +34 -0
- package/dom-helpers/animate.js +51 -0
- package/dom-helpers/animationFrame.js +21 -0
- package/dom-helpers/attribute.js +11 -0
- package/dom-helpers/camelize.js +8 -0
- package/dom-helpers/camelizeStyle.js +9 -0
- package/dom-helpers/canUseDOM.js +5 -0
- package/dom-helpers/childElements.js +7 -0
- package/dom-helpers/childNodes.js +8 -0
- package/dom-helpers/clear.js +12 -0
- package/dom-helpers/closest.js +14 -0
- package/dom-helpers/collectElements.js +11 -0
- package/dom-helpers/collectSiblings.js +15 -0
- package/dom-helpers/contains.js +9 -0
- package/dom-helpers/css.js +16 -0
- package/dom-helpers/filterEventHandler.js +12 -0
- package/dom-helpers/getComputedStyle.js +8 -0
- package/dom-helpers/getScrollAccessor.js +15 -0
- package/dom-helpers/hasClass.js +9 -0
- package/dom-helpers/height.js +10 -0
- package/dom-helpers/hyphenate.js +8 -0
- package/dom-helpers/hyphenateStyle.js +9 -0
- package/dom-helpers/index.js +140 -0
- package/dom-helpers/insertAfter.js +7 -0
- package/dom-helpers/isDocument.js +7 -0
- package/dom-helpers/isInput.js +8 -0
- package/dom-helpers/isTransform.js +8 -0
- package/dom-helpers/isVisible.js +7 -0
- package/dom-helpers/isWindow.js +8 -0
- package/dom-helpers/listen.js +11 -0
- package/dom-helpers/matches.js +12 -0
- package/dom-helpers/nextUntil.js +8 -0
- package/dom-helpers/offset.js +19 -0
- package/dom-helpers/offsetParent.js +14 -0
- package/dom-helpers/ownerDocument.js +7 -0
- package/dom-helpers/ownerWindow.js +9 -0
- package/dom-helpers/parents.js +8 -0
- package/dom-helpers/position.js +29 -0
- package/dom-helpers/prepend.js +7 -0
- package/dom-helpers/querySelectorAll.js +8 -0
- package/dom-helpers/reflow.js +26 -0
- package/dom-helpers/remove.js +7 -0
- package/dom-helpers/removeClass.js +19 -0
- package/dom-helpers/removeEventListener.js +8 -0
- package/dom-helpers/scrollLeft.js +6 -0
- package/dom-helpers/scrollParent.js +17 -0
- package/dom-helpers/scrollTo.js +27 -0
- package/dom-helpers/scrollTop.js +6 -0
- package/dom-helpers/scrollbarSize.js +13 -0
- package/dom-helpers/siblings.js +11 -0
- package/dom-helpers/text.js +9 -0
- package/dom-helpers/toggleClass.js +10 -0
- package/dom-helpers/transitionEnd.js +34 -0
- package/dom-helpers/triggerEvent.js +10 -0
- package/dom-helpers/types.js +5 -0
- package/dom-helpers/width.js +10 -0
- package/domHelpers.js +94 -0
- package/emitter/index.js +1 -0
- package/emitter/src/index.js +1 -0
- package/emitter.js +1 -0
- package/file/fileToURL.js +11 -11
- package/file/index.js +1 -0
- package/file/saveAs.js +1 -0
- package/file.js +1 -0
- package/filesize/types/constants.d.ts +30 -0
- package/filesize/types/helpers.d.ts +130 -0
- package/idb/index.js +103 -0
- package/idb.js +5 -0
- package/index.js +1 -0
- package/invariant/index.js +1 -0
- package/invariant.js +1 -0
- package/is/index.js +119 -119
- package/is.js +38 -37
- package/js-cookie/index.js +1 -0
- package/js-cookie/src/api.js +1 -0
- package/js-cookie/src/assign.js +1 -0
- package/js-cookie/src/converter.js +1 -0
- package/jsCookie.js +1 -0
- package/lunar/index.js +1 -0
- package/lunar/lib/Holiday.js +1 -0
- package/lunar/lib/HolidayUtil.js +1 -0
- package/lunar/lib/I18n.js +1 -0
- package/lunar/lib/JieQi.js +1 -0
- package/lunar/lib/Lunar.js +1 -0
- package/lunar/lib/LunarMonth.js +1 -0
- package/lunar/lib/LunarTime.js +1 -0
- package/lunar/lib/LunarUtil.js +1 -0
- package/lunar/lib/LunarYear.js +1 -0
- package/lunar/lib/ShouXingUtil.js +1 -0
- package/lunar/lib/Solar.js +1 -0
- package/lunar/lib/SolarHalfYear.js +1 -0
- package/lunar/lib/SolarMonth.js +1 -0
- package/lunar/lib/SolarSeason.js +1 -0
- package/lunar/lib/SolarUtil.js +1 -0
- package/lunar/lib/SolarWeek.js +1 -0
- package/lunar/lib/SolarYear.js +1 -0
- package/lunar/lib/index.js +1 -0
- package/lunar.js +1 -0
- package/math/index.js +1 -0
- package/math.js +1 -0
- package/md5/index.js +1 -0
- package/md5.js +1 -0
- package/mock/MockWebSocket.js +1 -1
- package/mock/MockXMLHttpRequest.js +1 -1
- package/mock/index.js +1 -0
- package/mock.js +1 -0
- package/normalize-wheel/ExecutionEnvironment.js +4 -2
- package/normalize-wheel/UserAgent_DEPRECATED.js +1 -0
- package/normalize-wheel/index.js +1 -0
- package/normalize-wheel/isEventSupported.js +10 -13
- package/normalizeWheel.js +1 -0
- package/number-to-chinese/index.js +1 -0
- package/numberToChinese.js +1 -0
- package/nzh/cn.js +1 -0
- package/nzh/hk.js +1 -0
- package/nzh/index.js +1 -0
- package/nzh/nzh.js +1 -0
- package/nzh/src/autoGet.js +1 -0
- package/nzh/src/index.js +1 -0
- package/nzh/src/langs/cn_b.js +1 -0
- package/nzh/src/langs/cn_s.js +1 -0
- package/nzh/src/langs/hk_b.js +1 -0
- package/nzh/src/langs/hk_s.js +1 -0
- package/nzh/src/utils.js +1 -0
- package/nzh.js +1 -0
- package/object-keys-sort/index.js +1 -0
- package/objectKeysSort.js +1 -0
- package/package.json +1 -1
- package/pinyin/index.js +1 -0
- package/pinyin/simplified.js +1 -0
- package/pinyin/src/core.js +44 -42
- package/pinyin/src/simplified.js +6 -5
- package/pinyin/src/simplified_dict.js +3 -3
- package/pinyin/src/traditional.js +4 -3
- package/pinyin/src/traditional_dict.js +3 -3
- package/pinyin/traditional.js +1 -0
- package/pinyin.js +1 -0
- package/query-string/base.d.ts +102 -12
- package/query-string/base.js +76 -67
- package/query-string/index.js +1 -0
- package/query-string/splitOnFirst.js +1 -0
- package/queryString.js +1 -0
- package/random/address.js +1 -0
- package/random/constellation.js +1 -0
- package/random/image.js +1 -0
- package/random/index.js +6 -5
- package/random/licensePlate.js +1 -0
- package/random/name.js +1 -0
- package/random/number.js +1 -0
- package/random/text.js +1 -0
- package/random/time.js +1 -0
- package/random/web.js +1 -0
- package/random.js +1 -0
- package/screenfull/index.js +47 -117
- package/screenfull.js +1 -0
- package/sleep/index.js +7 -0
- package/sleep.js +5 -0
- package/snapdom/index.js +1 -0
- package/snapdom/src/api/preCache.js +70 -40
- package/snapdom/src/api/snapdom.js +189 -107
- package/snapdom/src/core/cache.js +28 -5
- package/snapdom/src/core/capture.js +358 -70
- package/snapdom/src/core/clone.js +330 -96
- package/snapdom/src/core/context.js +59 -0
- package/snapdom/src/core/plugins.js +69 -0
- package/snapdom/src/core/prepare.js +125 -126
- package/snapdom/src/exporters/download.js +16 -0
- package/snapdom/src/exporters/toBlob.js +21 -0
- package/snapdom/src/exporters/toCanvas.js +106 -0
- package/snapdom/src/exporters/toImg.js +36 -0
- package/snapdom/src/modules/CSSVar.js +87 -0
- package/snapdom/src/modules/background.js +67 -28
- package/snapdom/src/modules/changeCSS.js +61 -0
- package/snapdom/src/modules/counter.js +179 -0
- package/snapdom/src/modules/fonts.js +640 -179
- package/snapdom/src/modules/iconFonts.js +98 -13
- package/snapdom/src/modules/images.js +48 -13
- package/snapdom/src/modules/lineClamp.js +42 -0
- package/snapdom/src/modules/pseudo.js +205 -64
- package/snapdom/src/modules/rasterize.js +10 -0
- package/snapdom/src/modules/snapFetch.js +263 -0
- package/snapdom/src/modules/styles.js +144 -23
- package/snapdom/src/modules/svgDefs.js +86 -38
- package/snapdom/src/utils/browser.js +13 -0
- package/snapdom/src/utils/css.js +191 -0
- package/snapdom/src/utils/helpers.js +25 -234
- package/snapdom/src/utils/image.js +39 -0
- package/snapdom/types/snapdom.d.ts +353 -92
- package/snapdom.js +1 -0
- package/tinycolor/index.js +2 -1
- package/tinycolor/src/conversion.js +2 -1
- package/tinycolor/src/css-color-names.js +1 -0
- package/tinycolor/src/format-input.js +2 -1
- package/tinycolor/src/from-ratio.js +2 -1
- package/tinycolor/src/index.js +2 -1
- package/tinycolor/src/random.js +1 -0
- package/tinycolor/src/readability.js +1 -0
- package/tinycolor/src/to-ms-filter.js +1 -0
- package/tinycolor/src/{util.js → utils.js} +1 -0
- package/tinycolor.js +2 -1
- package/tree/index.js +69 -65
- package/tree/search/index.js +50 -57
- package/tree.js +11 -7
- package/tween/index.js +8 -0
- package/tween/src/easing.js +62 -0
- package/tween/src/tween.js +46 -0
- package/tween.js +8 -0
- package/types/date/convertToDuration.d.ts +2 -0
- package/types/date/index.d.ts +2 -2
- package/types/dom-helpers/activeElement.d.ts +6 -0
- package/types/dom-helpers/addClass.d.ts +7 -0
- package/types/dom-helpers/addEventListener.d.ts +16 -0
- package/types/dom-helpers/animate.d.ts +19 -0
- package/types/dom-helpers/animationFrame.d.ts +2 -0
- package/types/dom-helpers/attribute.d.ts +8 -0
- package/types/dom-helpers/camelize.d.ts +1 -0
- package/types/dom-helpers/camelizeStyle.d.ts +2 -0
- package/types/dom-helpers/canUseDOM.d.ts +2 -0
- package/types/dom-helpers/childElements.d.ts +6 -0
- package/types/dom-helpers/childNodes.d.ts +6 -0
- package/types/dom-helpers/clear.d.ts +6 -0
- package/types/dom-helpers/closest.d.ts +8 -0
- package/types/dom-helpers/collectElements.d.ts +3 -0
- package/types/dom-helpers/collectSiblings.d.ts +1 -0
- package/types/dom-helpers/contains.d.ts +7 -0
- package/types/dom-helpers/css.d.ts +3 -0
- package/types/dom-helpers/filterEventHandler.d.ts +2 -0
- package/types/dom-helpers/getComputedStyle.d.ts +7 -0
- package/types/dom-helpers/getScrollAccessor.d.ts +1 -0
- package/types/dom-helpers/hasClass.d.ts +7 -0
- package/types/dom-helpers/height.d.ts +7 -0
- package/types/dom-helpers/hyphenate.d.ts +1 -0
- package/types/dom-helpers/hyphenateStyle.d.ts +7 -0
- package/types/dom-helpers/index.d.ts +93 -0
- package/types/dom-helpers/insertAfter.d.ts +7 -0
- package/types/dom-helpers/isDocument.d.ts +1 -0
- package/types/dom-helpers/isInput.d.ts +6 -0
- package/types/dom-helpers/isTransform.d.ts +2 -0
- package/types/dom-helpers/isVisible.d.ts +6 -0
- package/types/dom-helpers/isWindow.d.ts +1 -0
- package/types/dom-helpers/listen.d.ts +3 -0
- package/types/dom-helpers/matches.d.ts +7 -0
- package/types/dom-helpers/nextUntil.d.ts +7 -0
- package/types/dom-helpers/offset.d.ts +11 -0
- package/types/dom-helpers/offsetParent.d.ts +1 -0
- package/types/dom-helpers/ownerDocument.d.ts +6 -0
- package/types/dom-helpers/ownerWindow.d.ts +6 -0
- package/types/dom-helpers/parents.d.ts +6 -0
- package/types/dom-helpers/position.d.ts +23 -0
- package/types/dom-helpers/prepend.d.ts +7 -0
- package/types/dom-helpers/querySelectorAll.d.ts +7 -0
- package/types/dom-helpers/reflow.d.ts +2 -0
- package/types/dom-helpers/remove.d.ts +6 -0
- package/types/dom-helpers/removeClass.d.ts +7 -0
- package/types/dom-helpers/removeEventListener.d.ts +11 -0
- package/types/dom-helpers/scrollLeft.d.ts +8 -0
- package/types/dom-helpers/scrollParent.d.ts +7 -0
- package/types/dom-helpers/scrollTo.d.ts +1 -0
- package/types/dom-helpers/scrollTop.d.ts +8 -0
- package/types/dom-helpers/scrollbarSize.d.ts +1 -0
- package/types/dom-helpers/siblings.d.ts +6 -0
- package/types/dom-helpers/text.d.ts +8 -0
- package/types/dom-helpers/toggleClass.d.ts +7 -0
- package/types/dom-helpers/transitionEnd.d.ts +2 -0
- package/types/dom-helpers/triggerEvent.d.ts +9 -0
- package/types/dom-helpers/types.d.ts +6 -0
- package/types/dom-helpers/width.d.ts +7 -0
- package/types/filesize/benchmarks/basic-performance.d.ts +1 -0
- package/types/filesize/benchmarks/index.d.ts +2 -0
- package/types/filesize/benchmarks/options-benchmark.d.ts +1 -0
- package/types/filesize/benchmarks/partial-benchmark.d.ts +1 -0
- package/types/filesize/benchmarks/stress-test.d.ts +1 -0
- package/types/filesize/src/constants.d.ts +5 -0
- package/types/filesize/src/helpers.d.ts +55 -0
- package/types/idb/index.d.ts +21 -0
- package/types/index.d.ts +1 -1
- package/types/is/index.d.ts +37 -37
- package/types/lodash/_DataView.d.ts +2 -0
- package/types/lodash/_Hash.d.ts +29 -0
- package/types/lodash/_LazyWrapper.d.ts +26 -0
- package/types/lodash/_ListCache.d.ts +29 -0
- package/types/lodash/_LodashWrapper.d.ts +24 -0
- package/types/lodash/_Map.d.ts +2 -0
- package/types/lodash/_MapCache.d.ts +29 -0
- package/types/lodash/_Promise.d.ts +2 -0
- package/types/lodash/_Set.d.ts +2 -0
- package/types/lodash/_SetCache.d.ts +28 -0
- package/types/lodash/_Stack.d.ts +32 -0
- package/types/lodash/_Symbol.d.ts +3 -0
- package/types/lodash/_Uint8Array.d.ts +3 -0
- package/types/lodash/_WeakMap.d.ts +2 -0
- package/types/lodash/_addMapEntry.d.ts +10 -0
- package/types/lodash/_addSetEntry.d.ts +10 -0
- package/types/lodash/_apply.d.ts +12 -0
- package/types/lodash/_arrayAggregator.d.ts +12 -0
- package/types/lodash/_arrayEach.d.ts +11 -0
- package/types/lodash/_arrayEachRight.d.ts +11 -0
- package/types/lodash/_arrayEvery.d.ts +12 -0
- package/types/lodash/_arrayFilter.d.ts +11 -0
- package/types/lodash/_arrayIncludes.d.ts +11 -0
- package/types/lodash/_arrayIncludesWith.d.ts +11 -0
- package/types/lodash/_arrayLikeKeys.d.ts +10 -0
- package/types/lodash/_arrayMap.d.ts +11 -0
- package/types/lodash/_arrayPush.d.ts +10 -0
- package/types/lodash/_arrayReduce.d.ts +14 -0
- package/types/lodash/_arrayReduceRight.d.ts +14 -0
- package/types/lodash/_arraySample.d.ts +9 -0
- package/types/lodash/_arraySampleSize.d.ts +10 -0
- package/types/lodash/_arrayShuffle.d.ts +9 -0
- package/types/lodash/_arraySome.d.ts +12 -0
- package/types/lodash/_asciiSize.d.ts +9 -0
- package/types/lodash/_asciiToArray.d.ts +9 -0
- package/types/lodash/_asciiWords.d.ts +9 -0
- package/types/lodash/_assignMergeValue.d.ts +11 -0
- package/types/lodash/_assignValue.d.ts +12 -0
- package/types/lodash/_assocIndexOf.d.ts +10 -0
- package/types/lodash/_baseAggregator.d.ts +13 -0
- package/types/lodash/_baseAssign.d.ts +11 -0
- package/types/lodash/_baseAssignIn.d.ts +11 -0
- package/types/lodash/_baseAssignValue.d.ts +11 -0
- package/types/lodash/_baseAt.d.ts +10 -0
- package/types/lodash/_baseClamp.d.ts +11 -0
- package/types/lodash/_baseClone.d.ts +18 -0
- package/types/lodash/_baseConforms.d.ts +9 -0
- package/types/lodash/_baseConformsTo.d.ts +10 -0
- package/types/lodash/_baseCreate.d.ts +2 -0
- package/types/lodash/_baseDelay.d.ts +12 -0
- package/types/lodash/_baseDifference.d.ts +13 -0
- package/types/lodash/_baseEach.d.ts +10 -0
- package/types/lodash/_baseEachRight.d.ts +10 -0
- package/types/lodash/_baseEvery.d.ts +11 -0
- package/types/lodash/_baseExtremum.d.ts +12 -0
- package/types/lodash/_baseFill.d.ts +12 -0
- package/types/lodash/_baseFilter.d.ts +10 -0
- package/types/lodash/_baseFindIndex.d.ts +13 -0
- package/types/lodash/_baseFindKey.d.ts +13 -0
- package/types/lodash/_baseFlatten.d.ts +13 -0
- package/types/lodash/_baseFor.d.ts +13 -0
- package/types/lodash/_baseForOwn.d.ts +10 -0
- package/types/lodash/_baseForOwnRight.d.ts +10 -0
- package/types/lodash/_baseForRight.d.ts +12 -0
- package/types/lodash/_baseFunctions.d.ts +11 -0
- package/types/lodash/_baseGet.d.ts +10 -0
- package/types/lodash/_baseGetAllKeys.d.ts +13 -0
- package/types/lodash/_baseGetTag.d.ts +9 -0
- package/types/lodash/_baseGt.d.ts +11 -0
- package/types/lodash/_baseHas.d.ts +10 -0
- package/types/lodash/_baseHasIn.d.ts +10 -0
- package/types/lodash/_baseInRange.d.ts +11 -0
- package/types/lodash/_baseIndexOf.d.ts +11 -0
- package/types/lodash/_baseIndexOfWith.d.ts +12 -0
- package/types/lodash/_baseIntersection.d.ts +12 -0
- package/types/lodash/_baseInverter.d.ts +13 -0
- package/types/lodash/_baseInvoke.d.ts +12 -0
- package/types/lodash/_baseIsArguments.d.ts +9 -0
- package/types/lodash/_baseIsArrayBuffer.d.ts +9 -0
- package/types/lodash/_baseIsDate.d.ts +9 -0
- package/types/lodash/_baseIsEqual.d.ts +16 -0
- package/types/lodash/_baseIsEqualDeep.d.ts +16 -0
- package/types/lodash/_baseIsMap.d.ts +9 -0
- package/types/lodash/_baseIsMatch.d.ts +12 -0
- package/types/lodash/_baseIsNaN.d.ts +9 -0
- package/types/lodash/_baseIsNative.d.ts +10 -0
- package/types/lodash/_baseIsRegExp.d.ts +9 -0
- package/types/lodash/_baseIsSet.d.ts +9 -0
- package/types/lodash/_baseIsTypedArray.d.ts +9 -0
- package/types/lodash/_baseIteratee.d.ts +9 -0
- package/types/lodash/_baseKeys.d.ts +9 -0
- package/types/lodash/_baseKeysIn.d.ts +9 -0
- package/types/lodash/_baseLodash.d.ts +7 -0
- package/types/lodash/_baseLt.d.ts +11 -0
- package/types/lodash/_baseMap.d.ts +10 -0
- package/types/lodash/_baseMatches.d.ts +9 -0
- package/types/lodash/_baseMatchesProperty.d.ts +10 -0
- package/types/lodash/_baseMean.d.ts +11 -0
- package/types/lodash/_baseMerge.d.ts +13 -0
- package/types/lodash/_baseMergeDeep.d.ts +17 -0
- package/types/lodash/_baseNth.d.ts +10 -0
- package/types/lodash/_baseOrderBy.d.ts +11 -0
- package/types/lodash/_basePick.d.ts +11 -0
- package/types/lodash/_basePickBy.d.ts +11 -0
- package/types/lodash/_baseProperty.d.ts +9 -0
- package/types/lodash/_basePropertyDeep.d.ts +9 -0
- package/types/lodash/_basePropertyOf.d.ts +9 -0
- package/types/lodash/_basePullAll.d.ts +13 -0
- package/types/lodash/_basePullAt.d.ts +11 -0
- package/types/lodash/_baseRandom.d.ts +11 -0
- package/types/lodash/_baseRange.d.ts +13 -0
- package/types/lodash/_baseReduce.d.ts +15 -0
- package/types/lodash/_baseRepeat.d.ts +10 -0
- package/types/lodash/_baseRest.d.ts +10 -0
- package/types/lodash/_baseSample.d.ts +9 -0
- package/types/lodash/_baseSampleSize.d.ts +10 -0
- package/types/lodash/_baseSet.d.ts +12 -0
- package/types/lodash/_baseSetData.d.ts +2 -0
- package/types/lodash/_baseSetToString.d.ts +2 -0
- package/types/lodash/_baseShuffle.d.ts +9 -0
- package/types/lodash/_baseSlice.d.ts +11 -0
- package/types/lodash/_baseSome.d.ts +11 -0
- package/types/lodash/_baseSortBy.d.ts +12 -0
- package/types/lodash/_baseSortedIndex.d.ts +14 -0
- package/types/lodash/_baseSortedIndexBy.d.ts +15 -0
- package/types/lodash/_baseSortedUniq.d.ts +11 -0
- package/types/lodash/_baseSum.d.ts +11 -0
- package/types/lodash/_baseTimes.d.ts +11 -0
- package/types/lodash/_baseToNumber.d.ts +10 -0
- package/types/lodash/_baseToPairs.d.ts +11 -0
- package/types/lodash/_baseToString.d.ts +10 -0
- package/types/lodash/_baseTrim.d.ts +9 -0
- package/types/lodash/_baseUnary.d.ts +9 -0
- package/types/lodash/_baseUniq.d.ts +11 -0
- package/types/lodash/_baseUnset.d.ts +10 -0
- package/types/lodash/_baseUpdate.d.ts +12 -0
- package/types/lodash/_baseValues.d.ts +12 -0
- package/types/lodash/_baseWhile.d.ts +13 -0
- package/types/lodash/_baseWrapperValue.d.ts +12 -0
- package/types/lodash/_baseXor.d.ts +12 -0
- package/types/lodash/_baseZipObject.d.ts +11 -0
- package/types/lodash/_cacheHas.d.ts +10 -0
- package/types/lodash/_castArrayLikeObject.d.ts +9 -0
- package/types/lodash/_castFunction.d.ts +9 -0
- package/types/lodash/_castPath.d.ts +10 -0
- package/types/lodash/_castRest.d.ts +11 -0
- package/types/lodash/_castSlice.d.ts +11 -0
- package/types/lodash/_charsEndIndex.d.ts +11 -0
- package/types/lodash/_charsStartIndex.d.ts +11 -0
- package/types/lodash/_cloneArrayBuffer.d.ts +9 -0
- package/types/lodash/_cloneBuffer.d.ts +10 -0
- package/types/lodash/_cloneDataView.d.ts +10 -0
- package/types/lodash/_cloneMap.d.ts +11 -0
- package/types/lodash/_cloneRegExp.d.ts +9 -0
- package/types/lodash/_cloneSet.d.ts +11 -0
- package/types/lodash/_cloneSymbol.d.ts +9 -0
- package/types/lodash/_cloneTypedArray.d.ts +10 -0
- package/types/lodash/_compareAscending.d.ts +10 -0
- package/types/lodash/_compareMultiple.d.ts +16 -0
- package/types/lodash/_composeArgs.d.ts +13 -0
- package/types/lodash/_composeArgsRight.d.ts +13 -0
- package/types/lodash/_copyArray.d.ts +10 -0
- package/types/lodash/_copyObject.d.ts +12 -0
- package/types/lodash/_copySymbols.d.ts +10 -0
- package/types/lodash/_copySymbolsIn.d.ts +10 -0
- package/types/lodash/_coreJsData.d.ts +3 -0
- package/types/lodash/_countHolders.d.ts +10 -0
- package/types/lodash/_createAggregator.d.ts +10 -0
- package/types/lodash/_createAssigner.d.ts +9 -0
- package/types/lodash/_createBaseEach.d.ts +10 -0
- package/types/lodash/_createBaseFor.d.ts +9 -0
- package/types/lodash/_createBind.d.ts +12 -0
- package/types/lodash/_createCaseFirst.d.ts +9 -0
- package/types/lodash/_createCompounder.d.ts +9 -0
- package/types/lodash/_createCtor.d.ts +10 -0
- package/types/lodash/_createCurry.d.ts +11 -0
- package/types/lodash/_createFind.d.ts +9 -0
- package/types/lodash/_createFlow.d.ts +9 -0
- package/types/lodash/_createHybrid.d.ts +21 -0
- package/types/lodash/_createInverter.d.ts +10 -0
- package/types/lodash/_createMathOperation.d.ts +10 -0
- package/types/lodash/_createOver.d.ts +9 -0
- package/types/lodash/_createPadding.d.ts +11 -0
- package/types/lodash/_createPartial.d.ts +14 -0
- package/types/lodash/_createRange.d.ts +9 -0
- package/types/lodash/_createRecurry.d.ts +19 -0
- package/types/lodash/_createRelationalOperation.d.ts +9 -0
- package/types/lodash/_createRound.d.ts +9 -0
- package/types/lodash/_createSet.d.ts +2 -0
- package/types/lodash/_createToPairs.d.ts +9 -0
- package/types/lodash/_createWrap.d.ts +27 -0
- package/types/lodash/_customDefaultsAssignIn.d.ts +14 -0
- package/types/lodash/_customDefaultsMerge.d.ts +16 -0
- package/types/lodash/_customOmitClone.d.ts +11 -0
- package/types/lodash/_deburrLetter.d.ts +10 -0
- package/types/lodash/_defineProperty.d.ts +2 -0
- package/types/lodash/_equalArrays.d.ts +15 -0
- package/types/lodash/_equalByTag.d.ts +19 -0
- package/types/lodash/_equalObjects.d.ts +15 -0
- package/types/lodash/_escapeHtmlChar.d.ts +9 -0
- package/types/lodash/_escapeStringChar.d.ts +9 -0
- package/types/lodash/_flatRest.d.ts +9 -0
- package/types/lodash/_freeGlobal.d.ts +3 -0
- package/types/lodash/_getAllKeys.d.ts +9 -0
- package/types/lodash/_getAllKeysIn.d.ts +10 -0
- package/types/lodash/_getData.d.ts +2 -0
- package/types/lodash/_getFuncName.d.ts +9 -0
- package/types/lodash/_getHolder.d.ts +9 -0
- package/types/lodash/_getMapData.d.ts +10 -0
- package/types/lodash/_getMatchData.d.ts +9 -0
- package/types/lodash/_getNative.d.ts +10 -0
- package/types/lodash/_getPrototype.d.ts +3 -0
- package/types/lodash/_getRawTag.d.ts +9 -0
- package/types/lodash/_getSymbols.d.ts +2 -0
- package/types/lodash/_getSymbolsIn.d.ts +2 -0
- package/types/lodash/_getTag.d.ts +10 -0
- package/types/lodash/_getValue.d.ts +10 -0
- package/types/lodash/_getView.d.ts +12 -0
- package/types/lodash/_getWrapDetails.d.ts +9 -0
- package/types/lodash/_hasPath.d.ts +11 -0
- package/types/lodash/_hasUnicode.d.ts +9 -0
- package/types/lodash/_hasUnicodeWord.d.ts +9 -0
- package/types/lodash/_hashClear.d.ts +13 -0
- package/types/lodash/_hashDelete.d.ts +12 -0
- package/types/lodash/_hashGet.d.ts +11 -0
- package/types/lodash/_hashHas.d.ts +11 -0
- package/types/lodash/_hashSet.d.ts +12 -0
- package/types/lodash/_initCloneArray.d.ts +9 -0
- package/types/lodash/_initCloneByTag.d.ts +14 -0
- package/types/lodash/_initCloneObject.d.ts +9 -0
- package/types/lodash/_insertWrapDetails.d.ts +10 -0
- package/types/lodash/_isFlattenable.d.ts +9 -0
- package/types/lodash/_isIndex.d.ts +10 -0
- package/types/lodash/_isIterateeCall.d.ts +12 -0
- package/types/lodash/_isKey.d.ts +10 -0
- package/types/lodash/_isKeyable.d.ts +9 -0
- package/types/lodash/_isLaziable.d.ts +10 -0
- package/types/lodash/_isMaskable.d.ts +10 -0
- package/types/lodash/_isMasked.d.ts +9 -0
- package/types/lodash/_isPrototype.d.ts +9 -0
- package/types/lodash/_isStrictComparable.d.ts +10 -0
- package/types/lodash/_iteratorToArray.d.ts +9 -0
- package/types/lodash/_lazyClone.d.ts +10 -0
- package/types/lodash/_lazyReverse.d.ts +10 -0
- package/types/lodash/_lazyValue.d.ts +10 -0
- package/types/lodash/_listCacheClear.d.ts +13 -0
- package/types/lodash/_listCacheDelete.d.ts +11 -0
- package/types/lodash/_listCacheGet.d.ts +11 -0
- package/types/lodash/_listCacheHas.d.ts +11 -0
- package/types/lodash/_listCacheSet.d.ts +12 -0
- package/types/lodash/_mapCacheClear.d.ts +18 -0
- package/types/lodash/_mapCacheDelete.d.ts +11 -0
- package/types/lodash/_mapCacheGet.d.ts +11 -0
- package/types/lodash/_mapCacheHas.d.ts +11 -0
- package/types/lodash/_mapCacheSet.d.ts +12 -0
- package/types/lodash/_mapToArray.d.ts +9 -0
- package/types/lodash/_matchesStrictComparable.d.ts +11 -0
- package/types/lodash/_memoizeCapped.d.ts +10 -0
- package/types/lodash/_mergeData.d.ts +18 -0
- package/types/lodash/_metaMap.d.ts +3 -0
- package/types/lodash/_nativeCreate.d.ts +2 -0
- package/types/lodash/_nativeKeys.d.ts +2 -0
- package/types/lodash/_nativeKeysIn.d.ts +11 -0
- package/types/lodash/_nodeUtil.d.ts +3 -0
- package/types/lodash/_objectToString.d.ts +9 -0
- package/types/lodash/_overArg.d.ts +10 -0
- package/types/lodash/_overRest.d.ts +11 -0
- package/types/lodash/_parent.d.ts +10 -0
- package/types/lodash/_reEscape.d.ts +3 -0
- package/types/lodash/_reEvaluate.d.ts +3 -0
- package/types/lodash/_reInterpolate.d.ts +3 -0
- package/types/lodash/_realNames.d.ts +3 -0
- package/types/lodash/_reorder.d.ts +12 -0
- package/types/lodash/_replaceHolders.d.ts +11 -0
- package/types/lodash/_root.d.ts +3 -0
- package/types/lodash/_safeGet.d.ts +10 -0
- package/types/lodash/_setCacheAdd.d.ts +12 -0
- package/types/lodash/_setCacheHas.d.ts +11 -0
- package/types/lodash/_setData.d.ts +16 -0
- package/types/lodash/_setToArray.d.ts +9 -0
- package/types/lodash/_setToPairs.d.ts +9 -0
- package/types/lodash/_setToString.d.ts +10 -0
- package/types/lodash/_setWrapToString.d.ts +12 -0
- package/types/lodash/_shortOut.d.ts +11 -0
- package/types/lodash/_shuffleSelf.d.ts +10 -0
- package/types/lodash/_stackClear.d.ts +14 -0
- package/types/lodash/_stackDelete.d.ts +24 -0
- package/types/lodash/_stackGet.d.ts +11 -0
- package/types/lodash/_stackHas.d.ts +11 -0
- package/types/lodash/_stackSet.d.ts +28 -0
- package/types/lodash/_strictIndexOf.d.ts +12 -0
- package/types/lodash/_strictLastIndexOf.d.ts +12 -0
- package/types/lodash/_stringSize.d.ts +9 -0
- package/types/lodash/_stringToArray.d.ts +9 -0
- package/types/lodash/_stringToPath.d.ts +9 -0
- package/types/lodash/_toKey.d.ts +9 -0
- package/types/lodash/_toSource.d.ts +9 -0
- package/types/lodash/_trimmedEndIndex.d.ts +10 -0
- package/types/lodash/_unescapeHtmlChar.d.ts +9 -0
- package/types/lodash/_unicodeSize.d.ts +9 -0
- package/types/lodash/_unicodeToArray.d.ts +9 -0
- package/types/lodash/_unicodeWords.d.ts +9 -0
- package/types/lodash/_updateWrapDetails.d.ts +10 -0
- package/types/lodash/_wrapperClone.d.ts +9 -0
- package/types/lodash/add.d.ts +17 -0
- package/types/lodash/after.d.ts +26 -0
- package/types/lodash/array.d.ts +66 -0
- package/types/lodash/array.default.d.ts +133 -0
- package/types/lodash/ary.d.ts +19 -0
- package/types/lodash/assign.d.ts +34 -0
- package/types/lodash/assignIn.d.ts +33 -0
- package/types/lodash/assignInWith.d.ts +31 -0
- package/types/lodash/assignWith.d.ts +30 -0
- package/types/lodash/at.d.ts +19 -0
- package/types/lodash/attempt.d.ts +24 -0
- package/types/lodash/before.d.ts +19 -0
- package/types/lodash/bind.d.ts +37 -0
- package/types/lodash/bindAll.d.ts +28 -0
- package/types/lodash/bindKey.d.ts +47 -0
- package/types/lodash/camelCase.d.ts +22 -0
- package/types/lodash/capitalize.d.ts +17 -0
- package/types/lodash/castArray.d.ts +35 -0
- package/types/lodash/ceil.d.ts +23 -0
- package/types/lodash/chain.d.ts +31 -0
- package/types/lodash/chunk.d.ts +23 -0
- package/types/lodash/clamp.d.ts +21 -0
- package/types/lodash/clone.d.ts +28 -0
- package/types/lodash/cloneDeep.d.ts +20 -0
- package/types/lodash/cloneDeepWith.d.ts +30 -0
- package/types/lodash/cloneWith.d.ts +33 -0
- package/types/lodash/collection.d.ts +29 -0
- package/types/lodash/collection.default.d.ts +59 -0
- package/types/lodash/commit.d.ts +28 -0
- package/types/lodash/compact.d.ts +17 -0
- package/types/lodash/concat.d.ts +24 -0
- package/types/lodash/cond.d.ts +31 -0
- package/types/lodash/conforms.d.ts +26 -0
- package/types/lodash/conformsTo.d.ts +26 -0
- package/types/lodash/constant.d.ts +21 -0
- package/types/lodash/countBy.d.ts +24 -0
- package/types/lodash/create.d.ts +36 -0
- package/types/lodash/curry.d.ts +46 -0
- package/types/lodash/curryRight.d.ts +43 -0
- package/types/lodash/date.d.ts +2 -0
- package/types/lodash/date.default.d.ts +5 -0
- package/types/lodash/debounce.d.ts +60 -0
- package/types/lodash/deburr.d.ts +20 -0
- package/types/lodash/defaultTo.d.ts +22 -0
- package/types/lodash/defaults.d.ts +23 -0
- package/types/lodash/defaultsDeep.d.ts +21 -0
- package/types/lodash/defer.d.ts +20 -0
- package/types/lodash/delay.d.ts +21 -0
- package/types/lodash/difference.d.ts +23 -0
- package/types/lodash/differenceBy.d.ts +28 -0
- package/types/lodash/differenceWith.d.ts +25 -0
- package/types/lodash/divide.d.ts +17 -0
- package/types/lodash/drop.d.ts +27 -0
- package/types/lodash/dropRight.d.ts +27 -0
- package/types/lodash/dropRightWhile.d.ts +37 -0
- package/types/lodash/dropWhile.d.ts +37 -0
- package/types/lodash/each.d.ts +1 -0
- package/types/lodash/eachRight.d.ts +1 -0
- package/types/lodash/endsWith.d.ts +25 -0
- package/types/lodash/entries.d.ts +1 -0
- package/types/lodash/entriesIn.d.ts +1 -0
- package/types/lodash/eq.d.ts +34 -0
- package/types/lodash/escape.d.ts +30 -0
- package/types/lodash/escapeRegExp.d.ts +17 -0
- package/types/lodash/every.d.ts +43 -0
- package/types/lodash/extend.d.ts +1 -0
- package/types/lodash/extendWith.d.ts +1 -0
- package/types/lodash/fill.d.ts +31 -0
- package/types/lodash/filter.d.ts +43 -0
- package/types/lodash/find.d.ts +38 -0
- package/types/lodash/findIndex.d.ts +37 -0
- package/types/lodash/findKey.d.ts +37 -0
- package/types/lodash/findLast.d.ts +21 -0
- package/types/lodash/findLastIndex.d.ts +37 -0
- package/types/lodash/findLastKey.d.ts +37 -0
- package/types/lodash/first.d.ts +1 -0
- package/types/lodash/flatMap.d.ts +23 -0
- package/types/lodash/flatMapDeep.d.ts +22 -0
- package/types/lodash/flatMapDepth.d.ts +23 -0
- package/types/lodash/flatten.d.ts +16 -0
- package/types/lodash/flattenDeep.d.ts +16 -0
- package/types/lodash/flattenDepth.d.ts +22 -0
- package/types/lodash/flip.d.ts +20 -0
- package/types/lodash/floor.d.ts +23 -0
- package/types/lodash/flow.d.ts +24 -0
- package/types/lodash/flowRight.d.ts +23 -0
- package/types/lodash/forEach.d.ts +32 -0
- package/types/lodash/forEachRight.d.ts +22 -0
- package/types/lodash/forIn.d.ts +30 -0
- package/types/lodash/forInRight.d.ts +28 -0
- package/types/lodash/forOwn.d.ts +30 -0
- package/types/lodash/forOwnRight.d.ts +28 -0
- package/types/lodash/fromPairs.d.ts +17 -0
- package/types/lodash/function.d.ts +24 -0
- package/types/lodash/function.default.d.ts +49 -0
- package/types/lodash/functions.d.ts +25 -0
- package/types/lodash/functionsIn.d.ts +25 -0
- package/types/lodash/get.d.ts +27 -0
- package/types/lodash/groupBy.d.ts +25 -0
- package/types/lodash/gt.d.ts +25 -0
- package/types/lodash/gte.d.ts +25 -0
- package/types/lodash/has.d.ts +29 -0
- package/types/lodash/hasIn.d.ts +28 -0
- package/types/lodash/head.d.ts +20 -0
- package/types/lodash/identity.d.ts +18 -0
- package/types/lodash/inRange.d.ts +40 -0
- package/types/lodash/includes.d.ts +32 -0
- package/types/lodash/index.d.ts +3 -0
- package/types/lodash/indexOf.d.ts +25 -0
- package/types/lodash/initial.d.ts +16 -0
- package/types/lodash/intersection.d.ts +19 -0
- package/types/lodash/intersectionBy.d.ts +25 -0
- package/types/lodash/intersectionWith.d.ts +23 -0
- package/types/lodash/invert.d.ts +20 -0
- package/types/lodash/invertBy.d.ts +28 -0
- package/types/lodash/invoke.d.ts +20 -0
- package/types/lodash/invokeMap.d.ts +25 -0
- package/types/lodash/isArguments.d.ts +2 -0
- package/types/lodash/isArray.d.ts +25 -0
- package/types/lodash/isArrayBuffer.d.ts +19 -0
- package/types/lodash/isArrayLike.d.ts +27 -0
- package/types/lodash/isArrayLikeObject.d.ts +27 -0
- package/types/lodash/isBoolean.d.ts +19 -0
- package/types/lodash/isBuffer.d.ts +19 -0
- package/types/lodash/isDate.d.ts +19 -0
- package/types/lodash/isElement.d.ts +19 -0
- package/types/lodash/isEmpty.d.ts +35 -0
- package/types/lodash/isEqual.d.ts +30 -0
- package/types/lodash/isEqualWith.d.ts +34 -0
- package/types/lodash/isError.d.ts +20 -0
- package/types/lodash/isFinite.d.ts +28 -0
- package/types/lodash/isFunction.d.ts +19 -0
- package/types/lodash/isInteger.d.ts +28 -0
- package/types/lodash/isLength.d.ts +28 -0
- package/types/lodash/isMap.d.ts +19 -0
- package/types/lodash/isMatch.d.ts +30 -0
- package/types/lodash/isMatchWith.d.ts +34 -0
- package/types/lodash/isNaN.d.ts +30 -0
- package/types/lodash/isNative.d.ts +28 -0
- package/types/lodash/isNil.d.ts +22 -0
- package/types/lodash/isNull.d.ts +19 -0
- package/types/lodash/isNumber.d.ts +28 -0
- package/types/lodash/isObject.d.ts +27 -0
- package/types/lodash/isObjectLike.d.ts +26 -0
- package/types/lodash/isPlainObject.d.ts +30 -0
- package/types/lodash/isPromise.d.ts +2 -0
- package/types/lodash/isRegExp.d.ts +19 -0
- package/types/lodash/isSafeInteger.d.ts +29 -0
- package/types/lodash/isSet.d.ts +19 -0
- package/types/lodash/isString.d.ts +19 -0
- package/types/lodash/isSymbol.d.ts +19 -0
- package/types/lodash/isTypedArray.d.ts +19 -0
- package/types/lodash/isUndefined.d.ts +19 -0
- package/types/lodash/isWeakMap.d.ts +19 -0
- package/types/lodash/isWeakSet.d.ts +19 -0
- package/types/lodash/iteratee.d.ts +44 -0
- package/types/lodash/join.d.ts +17 -0
- package/types/lodash/kebabCase.d.ts +23 -0
- package/types/lodash/keyBy.d.ts +30 -0
- package/types/lodash/keys.d.ts +30 -0
- package/types/lodash/keysIn.d.ts +25 -0
- package/types/lodash/lang.d.ts +57 -0
- package/types/lodash/lang.default.d.ts +115 -0
- package/types/lodash/last.d.ts +16 -0
- package/types/lodash/lastIndexOf.d.ts +23 -0
- package/types/lodash/lodash.d.ts +317 -0
- package/types/lodash/lodash.default.d.ts +2 -0
- package/types/lodash/lowerCase.d.ts +22 -0
- package/types/lodash/lowerFirst.d.ts +19 -0
- package/types/lodash/lt.d.ts +25 -0
- package/types/lodash/lte.d.ts +25 -0
- package/types/lodash/map.d.ts +44 -0
- package/types/lodash/mapKeys.d.ts +23 -0
- package/types/lodash/mapValues.d.ts +30 -0
- package/types/lodash/matches.d.ts +37 -0
- package/types/lodash/matchesProperty.d.ts +35 -0
- package/types/lodash/math.d.ts +16 -0
- package/types/lodash/math.default.d.ts +33 -0
- package/types/lodash/max.d.ts +20 -0
- package/types/lodash/maxBy.d.ts +25 -0
- package/types/lodash/mean.d.ts +16 -0
- package/types/lodash/meanBy.d.ts +25 -0
- package/types/lodash/memoize.d.ts +50 -0
- package/types/lodash/merge.d.ts +33 -0
- package/types/lodash/mergeWith.d.ts +33 -0
- package/types/lodash/method.d.ts +26 -0
- package/types/lodash/methodOf.d.ts +25 -0
- package/types/lodash/min.d.ts +20 -0
- package/types/lodash/minBy.d.ts +25 -0
- package/types/lodash/mixin.d.ts +40 -0
- package/types/lodash/multiply.d.ts +17 -0
- package/types/lodash/negate.d.ts +22 -0
- package/types/lodash/next.d.ts +27 -0
- package/types/lodash/noop.d.ts +14 -0
- package/types/lodash/now.d.ts +18 -0
- package/types/lodash/nth.d.ts +23 -0
- package/types/lodash/nthArg.d.ts +22 -0
- package/types/lodash/number.d.ts +4 -0
- package/types/lodash/number.default.d.ts +9 -0
- package/types/lodash/object.d.ts +48 -0
- package/types/lodash/object.default.d.ts +97 -0
- package/types/lodash/omit.d.ts +22 -0
- package/types/lodash/omitBy.d.ts +22 -0
- package/types/lodash/once.d.ts +20 -0
- package/types/lodash/orderBy.d.ts +31 -0
- package/types/lodash/over.d.ts +20 -0
- package/types/lodash/overArgs.d.ts +33 -0
- package/types/lodash/overEvery.d.ts +30 -0
- package/types/lodash/overSome.d.ts +33 -0
- package/types/lodash/pad.d.ts +25 -0
- package/types/lodash/padEnd.d.ts +25 -0
- package/types/lodash/padStart.d.ts +25 -0
- package/types/lodash/parseInt.d.ts +26 -0
- package/types/lodash/partial.d.ts +35 -0
- package/types/lodash/partialRight.d.ts +34 -0
- package/types/lodash/partition.d.ts +38 -0
- package/types/lodash/pick.d.ts +19 -0
- package/types/lodash/pickBy.d.ts +20 -0
- package/types/lodash/plant.d.ts +26 -0
- package/types/lodash/property.d.ts +24 -0
- package/types/lodash/propertyOf.d.ts +23 -0
- package/types/lodash/pull.d.ts +25 -0
- package/types/lodash/pullAll.d.ts +22 -0
- package/types/lodash/pullAllBy.d.ts +25 -0
- package/types/lodash/pullAllWith.d.ts +25 -0
- package/types/lodash/pullAt.d.ts +26 -0
- package/types/lodash/random.d.ts +33 -0
- package/types/lodash/range.d.ts +43 -0
- package/types/lodash/rangeRight.d.ts +38 -0
- package/types/lodash/rearg.d.ts +24 -0
- package/types/lodash/reduce.d.ts +39 -0
- package/types/lodash/reduceRight.d.ts +24 -0
- package/types/lodash/reject.d.ts +36 -0
- package/types/lodash/remove.d.ts +30 -0
- package/types/lodash/repeat.d.ts +24 -0
- package/types/lodash/replace.d.ts +21 -0
- package/types/lodash/rest.d.ts +27 -0
- package/types/lodash/result.d.ts +31 -0
- package/types/lodash/reverse.d.ts +25 -0
- package/types/lodash/round.d.ts +23 -0
- package/types/lodash/sample.d.ts +16 -0
- package/types/lodash/sampleSize.d.ts +22 -0
- package/types/lodash/seq.d.ts +15 -0
- package/types/lodash/seq.default.d.ts +31 -0
- package/types/lodash/set.d.ts +30 -0
- package/types/lodash/setWith.d.ts +26 -0
- package/types/lodash/shuffle.d.ts +17 -0
- package/types/lodash/size.d.ts +23 -0
- package/types/lodash/slice.d.ts +18 -0
- package/types/lodash/snakeCase.d.ts +23 -0
- package/types/lodash/some.d.ts +38 -0
- package/types/lodash/sortBy.d.ts +31 -0
- package/types/lodash/sortedIndex.d.ts +19 -0
- package/types/lodash/sortedIndexBy.d.ts +27 -0
- package/types/lodash/sortedIndexOf.d.ts +18 -0
- package/types/lodash/sortedLastIndex.d.ts +20 -0
- package/types/lodash/sortedLastIndexBy.d.ts +27 -0
- package/types/lodash/sortedLastIndexOf.d.ts +18 -0
- package/types/lodash/sortedUniq.d.ts +17 -0
- package/types/lodash/sortedUniqBy.d.ts +18 -0
- package/types/lodash/split.d.ts +21 -0
- package/types/lodash/spread.d.ts +36 -0
- package/types/lodash/startCase.d.ts +23 -0
- package/types/lodash/startsWith.d.ts +25 -0
- package/types/lodash/string.d.ts +32 -0
- package/types/lodash/string.default.d.ts +65 -0
- package/types/lodash/stubArray.d.ts +20 -0
- package/types/lodash/stubFalse.d.ts +15 -0
- package/types/lodash/stubObject.d.ts +20 -0
- package/types/lodash/stubString.d.ts +15 -0
- package/types/lodash/stubTrue.d.ts +15 -0
- package/types/lodash/subtract.d.ts +17 -0
- package/types/lodash/sum.d.ts +16 -0
- package/types/lodash/sumBy.d.ts +25 -0
- package/types/lodash/tail.d.ts +16 -0
- package/types/lodash/take.d.ts +27 -0
- package/types/lodash/takeRight.d.ts +27 -0
- package/types/lodash/takeRightWhile.d.ts +37 -0
- package/types/lodash/takeWhile.d.ts +37 -0
- package/types/lodash/tap.d.ts +25 -0
- package/types/lodash/template.d.ts +113 -0
- package/types/lodash/templateSettings.d.ts +11 -0
- package/types/lodash/throttle.d.ts +49 -0
- package/types/lodash/thru.d.ts +25 -0
- package/types/lodash/times.d.ts +21 -0
- package/types/lodash/toArray.d.ts +25 -0
- package/types/lodash/toFinite.d.ts +25 -0
- package/types/lodash/toInteger.d.ts +28 -0
- package/types/lodash/toIterator.d.ts +20 -0
- package/types/lodash/toJSON.d.ts +1 -0
- package/types/lodash/toLength.d.ts +29 -0
- package/types/lodash/toLower.d.ts +23 -0
- package/types/lodash/toNumber.d.ts +25 -0
- package/types/lodash/toPairs.d.ts +26 -0
- package/types/lodash/toPairsIn.d.ts +26 -0
- package/types/lodash/toPath.d.ts +19 -0
- package/types/lodash/toPlainObject.d.ts +26 -0
- package/types/lodash/toSafeInteger.d.ts +26 -0
- package/types/lodash/toString.d.ts +23 -0
- package/types/lodash/toUpper.d.ts +23 -0
- package/types/lodash/transform.d.ts +32 -0
- package/types/lodash/trim.d.ts +24 -0
- package/types/lodash/trimEnd.d.ts +21 -0
- package/types/lodash/trimStart.d.ts +21 -0
- package/types/lodash/truncate.d.ts +43 -0
- package/types/lodash/unary.d.ts +17 -0
- package/types/lodash/unescape.d.ts +21 -0
- package/types/lodash/union.d.ts +18 -0
- package/types/lodash/unionBy.d.ts +25 -0
- package/types/lodash/unionWith.d.ts +23 -0
- package/types/lodash/uniq.d.ts +20 -0
- package/types/lodash/uniqBy.d.ts +25 -0
- package/types/lodash/uniqWith.d.ts +22 -0
- package/types/lodash/uniqueId.d.ts +19 -0
- package/types/lodash/unset.d.ts +29 -0
- package/types/lodash/unzip.d.ts +21 -0
- package/types/lodash/unzipWith.d.ts +23 -0
- package/types/lodash/update.d.ts +29 -0
- package/types/lodash/updateWith.d.ts +26 -0
- package/types/lodash/upperCase.d.ts +22 -0
- package/types/lodash/upperFirst.d.ts +19 -0
- package/types/lodash/util.d.ts +33 -0
- package/types/lodash/util.default.d.ts +67 -0
- package/types/lodash/value.d.ts +1 -0
- package/types/lodash/valueOf.d.ts +1 -0
- package/types/lodash/values.d.ts +28 -0
- package/types/lodash/valuesIn.d.ts +26 -0
- package/types/lodash/without.d.ts +22 -0
- package/types/lodash/words.d.ts +21 -0
- package/types/lodash/wrap.d.ts +24 -0
- package/types/lodash/wrapperAt.d.ts +18 -0
- package/types/lodash/wrapperChain.d.ts +29 -0
- package/types/lodash/wrapperLodash.d.ts +239 -0
- package/types/lodash/wrapperReverse.d.ts +22 -0
- package/types/lodash/wrapperValue.d.ts +16 -0
- package/types/lodash/xor.d.ts +20 -0
- package/types/lodash/xorBy.d.ts +25 -0
- package/types/lodash/xorWith.d.ts +23 -0
- package/types/lodash/zip.d.ts +18 -0
- package/types/lodash/zipObject.d.ts +18 -0
- package/types/lodash/zipObjectDeep.d.ts +17 -0
- package/types/lodash/zipWith.d.ts +22 -0
- package/types/normalize-wheel/index.d.ts +1 -1
- package/types/random/index.d.ts +4 -4
- package/types/screenfull/index.d.ts +1 -7
- package/types/sleep/index.d.ts +2 -0
- package/types/snapdom/src/api/preCache.d.ts +26 -3
- package/types/snapdom/src/api/snapdom.d.ts +89 -20
- package/types/snapdom/src/core/cache.d.ts +27 -12
- package/types/snapdom/src/core/capture.d.ts +4 -2
- package/types/snapdom/src/core/clone.d.ts +1 -10
- package/types/snapdom/src/core/context.d.ts +67 -0
- package/types/snapdom/src/core/exporters.d.ts +33 -0
- package/types/snapdom/src/core/plugins.d.ts +59 -0
- package/types/snapdom/src/core/prepare.d.ts +1 -2
- package/types/snapdom/src/exporters/download.d.ts +16 -0
- package/types/snapdom/src/exporters/toBlob.d.ts +14 -0
- package/types/snapdom/src/exporters/toCanvas.d.ts +14 -0
- package/types/snapdom/src/exporters/toImg.d.ts +11 -0
- package/types/snapdom/src/modules/CSSVar.d.ts +5 -0
- package/types/snapdom/src/modules/background.d.ts +6 -1
- package/types/snapdom/src/modules/changeCSS.d.ts +14 -0
- package/types/snapdom/src/modules/counter.d.ts +72 -0
- package/types/snapdom/src/modules/fonts.d.ts +67 -11
- package/types/snapdom/src/modules/iconFonts.d.ts +34 -0
- package/types/snapdom/src/modules/images.d.ts +10 -4
- package/types/snapdom/src/modules/lineClamp.d.ts +13 -0
- package/types/snapdom/src/modules/pseudo.d.ts +4 -4
- package/types/snapdom/src/modules/rasterize.d.ts +16 -0
- package/types/snapdom/src/modules/snapFetch.d.ts +93 -0
- package/types/snapdom/src/modules/styles.d.ts +2 -1
- package/types/snapdom/src/modules/svgDefs.d.ts +9 -15
- package/types/snapdom/src/utils/browser.d.ts +12 -0
- package/types/snapdom/src/utils/css.d.ts +68 -0
- package/types/snapdom/src/utils/helpers.d.ts +0 -61
- package/types/snapdom/src/utils/image.d.ts +21 -0
- package/types/snapdom/src/utils/index.d.ts +4 -0
- package/types/tinycolor/src/public_api.d.ts +1 -1
- package/types/tree/index.d.ts +6 -6
- package/types/tween/index.d.ts +1 -0
- package/types/tween/src/easing.d.ts +22 -0
- package/types/tween/src/index.d.ts +3 -0
- package/types/tween/src/tween.d.ts +22 -0
- package/types/validate/index.d.ts +3 -0
- package/types/validate/src/index.d.ts +39 -0
- package/types/validate/src/interface.d.ts +53 -0
- package/types/validate/src/locale/en-US.d.ts +47 -0
- package/types/validate/src/locale/zh-CN.d.ts +47 -0
- package/types/validate/src/message.d.ts +2 -0
- package/types/validate/src/rules/array.d.ts +12 -0
- package/types/validate/src/rules/base.d.ts +25 -0
- package/types/validate/src/rules/boolean.d.ts +8 -0
- package/types/validate/src/rules/custom.d.ts +7 -0
- package/types/validate/src/rules/number.d.ts +12 -0
- package/types/validate/src/rules/object.d.ts +9 -0
- package/types/validate/src/rules/string.d.ts +12 -0
- package/types/validate/src/rules/type.d.ts +9 -0
- package/types/validate/src/utils.d.ts +3 -0
- package/ui-color/compareColorByRange.js +1 -0
- package/ui-color/index.js +1 -0
- package/uiColor.js +1 -0
- package/url-toolkit/index.js +1 -0
- package/url-toolkit/src/url-toolkit.js +1 -0
- package/urlToolkit.js +1 -0
- package/validate/index.js +28 -0
- package/validate/src/index.js +106 -0
- package/validate/src/locale/en-US.js +50 -0
- package/validate/src/locale/zh-CN.js +50 -0
- package/validate/src/message.js +5 -0
- package/validate/src/rules/array.js +73 -0
- package/validate/src/rules/base.js +69 -0
- package/validate/src/rules/boolean.js +29 -0
- package/validate/src/rules/custom.js +26 -0
- package/validate/src/rules/number.js +54 -0
- package/validate/src/rules/object.js +39 -0
- package/validate/src/rules/string.js +54 -0
- package/validate/src/rules/type.js +35 -0
- package/validate/src/utils.js +8 -0
- package/validate.js +28 -0
- package/version/index.js +1 -0
- package/version.js +1 -0
- package/filesize/index.js +0 -8
- package/filesize/src/constants.js +0 -71
- package/filesize/src/filesize.js +0 -87
- package/filesize.js +0 -8
- package/snapdom/src/utils/cssTools.js +0 -118
- package/turbo-stream/index.js +0 -6
- package/turbo-stream/src/decode.js +0 -284
- package/turbo-stream/src/encode.js +0 -357
- package/turbo-stream/src/shared.js +0 -267
- package/turboStream.js +0 -6
- package/types/filesize/index.d.ts +0 -2
- package/types/snapdom/src/utils/cssTools.d.ts +0 -29
- package/types/turbo-stream/index.d.ts +0 -1
- package/types/turbo-stream/src/decode.d.ts +0 -7
- package/types/turbo-stream/src/encode.d.ts +0 -27
- package/types/turbo-stream/src/shared.d.ts +0 -107
- package/types/turbo-stream/src/turbo-stream.d.ts +0 -4
- /package/types/tinycolor/src/{util.d.ts → utils.d.ts} +0 -0
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export { chunk };
|
|
3
|
+
export { compact };
|
|
4
|
+
export { concat };
|
|
5
|
+
export { difference };
|
|
6
|
+
export { differenceBy };
|
|
7
|
+
export { differenceWith };
|
|
8
|
+
export { drop };
|
|
9
|
+
export { dropRight };
|
|
10
|
+
export { dropRightWhile };
|
|
11
|
+
export { dropWhile };
|
|
12
|
+
export { fill };
|
|
13
|
+
export { findIndex };
|
|
14
|
+
export { findLastIndex };
|
|
15
|
+
export { first };
|
|
16
|
+
export { flatten };
|
|
17
|
+
export { flattenDeep };
|
|
18
|
+
export { flattenDepth };
|
|
19
|
+
export { fromPairs };
|
|
20
|
+
export { head };
|
|
21
|
+
export { indexOf };
|
|
22
|
+
export { initial };
|
|
23
|
+
export { intersection };
|
|
24
|
+
export { intersectionBy };
|
|
25
|
+
export { intersectionWith };
|
|
26
|
+
export { join };
|
|
27
|
+
export { last };
|
|
28
|
+
export { lastIndexOf };
|
|
29
|
+
export { nth };
|
|
30
|
+
export { pull };
|
|
31
|
+
export { pullAll };
|
|
32
|
+
export { pullAllBy };
|
|
33
|
+
export { pullAllWith };
|
|
34
|
+
export { pullAt };
|
|
35
|
+
export { remove };
|
|
36
|
+
export { reverse };
|
|
37
|
+
export { slice };
|
|
38
|
+
export { sortedIndex };
|
|
39
|
+
export { sortedIndexBy };
|
|
40
|
+
export { sortedIndexOf };
|
|
41
|
+
export { sortedLastIndex };
|
|
42
|
+
export { sortedLastIndexBy };
|
|
43
|
+
export { sortedLastIndexOf };
|
|
44
|
+
export { sortedUniq };
|
|
45
|
+
export { sortedUniqBy };
|
|
46
|
+
export { tail };
|
|
47
|
+
export { take };
|
|
48
|
+
export { takeRight };
|
|
49
|
+
export { takeRightWhile };
|
|
50
|
+
export { takeWhile };
|
|
51
|
+
export { union };
|
|
52
|
+
export { unionBy };
|
|
53
|
+
export { unionWith };
|
|
54
|
+
export { uniq };
|
|
55
|
+
export { uniqBy };
|
|
56
|
+
export { uniqWith };
|
|
57
|
+
export { unzip };
|
|
58
|
+
export { unzipWith };
|
|
59
|
+
export { without };
|
|
60
|
+
export { xor };
|
|
61
|
+
export { xorBy };
|
|
62
|
+
export { xorWith };
|
|
63
|
+
export { zip };
|
|
64
|
+
export { zipObject };
|
|
65
|
+
export { zipObjectDeep };
|
|
66
|
+
export { zipWith };
|
|
67
|
+
}
|
|
68
|
+
export default _default;
|
|
69
|
+
import chunk from './chunk.js';
|
|
70
|
+
import compact from './compact.js';
|
|
71
|
+
import concat from './concat.js';
|
|
72
|
+
import difference from './difference.js';
|
|
73
|
+
import differenceBy from './differenceBy.js';
|
|
74
|
+
import differenceWith from './differenceWith.js';
|
|
75
|
+
import drop from './drop.js';
|
|
76
|
+
import dropRight from './dropRight.js';
|
|
77
|
+
import dropRightWhile from './dropRightWhile.js';
|
|
78
|
+
import dropWhile from './dropWhile.js';
|
|
79
|
+
import fill from './fill.js';
|
|
80
|
+
import findIndex from './findIndex.js';
|
|
81
|
+
import findLastIndex from './findLastIndex.js';
|
|
82
|
+
import first from './first.js';
|
|
83
|
+
import flatten from './flatten.js';
|
|
84
|
+
import flattenDeep from './flattenDeep.js';
|
|
85
|
+
import flattenDepth from './flattenDepth.js';
|
|
86
|
+
import fromPairs from './fromPairs.js';
|
|
87
|
+
import head from './head.js';
|
|
88
|
+
import indexOf from './indexOf.js';
|
|
89
|
+
import initial from './initial.js';
|
|
90
|
+
import intersection from './intersection.js';
|
|
91
|
+
import intersectionBy from './intersectionBy.js';
|
|
92
|
+
import intersectionWith from './intersectionWith.js';
|
|
93
|
+
import join from './join.js';
|
|
94
|
+
import last from './last.js';
|
|
95
|
+
import lastIndexOf from './lastIndexOf.js';
|
|
96
|
+
import nth from './nth.js';
|
|
97
|
+
import pull from './pull.js';
|
|
98
|
+
import pullAll from './pullAll.js';
|
|
99
|
+
import pullAllBy from './pullAllBy.js';
|
|
100
|
+
import pullAllWith from './pullAllWith.js';
|
|
101
|
+
import pullAt from './pullAt.js';
|
|
102
|
+
import remove from './remove.js';
|
|
103
|
+
import reverse from './reverse.js';
|
|
104
|
+
import slice from './slice.js';
|
|
105
|
+
import sortedIndex from './sortedIndex.js';
|
|
106
|
+
import sortedIndexBy from './sortedIndexBy.js';
|
|
107
|
+
import sortedIndexOf from './sortedIndexOf.js';
|
|
108
|
+
import sortedLastIndex from './sortedLastIndex.js';
|
|
109
|
+
import sortedLastIndexBy from './sortedLastIndexBy.js';
|
|
110
|
+
import sortedLastIndexOf from './sortedLastIndexOf.js';
|
|
111
|
+
import sortedUniq from './sortedUniq.js';
|
|
112
|
+
import sortedUniqBy from './sortedUniqBy.js';
|
|
113
|
+
import tail from './tail.js';
|
|
114
|
+
import take from './take.js';
|
|
115
|
+
import takeRight from './takeRight.js';
|
|
116
|
+
import takeRightWhile from './takeRightWhile.js';
|
|
117
|
+
import takeWhile from './takeWhile.js';
|
|
118
|
+
import union from './union.js';
|
|
119
|
+
import unionBy from './unionBy.js';
|
|
120
|
+
import unionWith from './unionWith.js';
|
|
121
|
+
import uniq from './uniq.js';
|
|
122
|
+
import uniqBy from './uniqBy.js';
|
|
123
|
+
import uniqWith from './uniqWith.js';
|
|
124
|
+
import unzip from './unzip.js';
|
|
125
|
+
import unzipWith from './unzipWith.js';
|
|
126
|
+
import without from './without.js';
|
|
127
|
+
import xor from './xor.js';
|
|
128
|
+
import xorBy from './xorBy.js';
|
|
129
|
+
import xorWith from './xorWith.js';
|
|
130
|
+
import zip from './zip.js';
|
|
131
|
+
import zipObject from './zipObject.js';
|
|
132
|
+
import zipObjectDeep from './zipObjectDeep.js';
|
|
133
|
+
import zipWith from './zipWith.js';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default ary;
|
|
2
|
+
/**
|
|
3
|
+
* Creates a function that invokes `func`, with up to `n` arguments,
|
|
4
|
+
* ignoring any additional arguments.
|
|
5
|
+
*
|
|
6
|
+
* @static
|
|
7
|
+
* @memberOf _
|
|
8
|
+
* @since 3.0.0
|
|
9
|
+
* @category Function
|
|
10
|
+
* @param {Function} func The function to cap arguments for.
|
|
11
|
+
* @param {number} [n=func.length] The arity cap.
|
|
12
|
+
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
|
13
|
+
* @returns {Function} Returns the new capped function.
|
|
14
|
+
* @example
|
|
15
|
+
*
|
|
16
|
+
* _.map(['6', '8', '10'], _.ary(parseInt, 1));
|
|
17
|
+
* // => [6, 8, 10]
|
|
18
|
+
*/
|
|
19
|
+
declare function ary(func: Function, n?: number, guard: any): Function;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default assign;
|
|
2
|
+
/**
|
|
3
|
+
* Assigns own enumerable string keyed properties of source objects to the
|
|
4
|
+
* destination object. Source objects are applied from left to right.
|
|
5
|
+
* Subsequent sources overwrite property assignments of previous sources.
|
|
6
|
+
*
|
|
7
|
+
* **Note:** This method mutates `object` and is loosely based on
|
|
8
|
+
* [`Object.assign`](https://mdn.io/Object/assign).
|
|
9
|
+
*
|
|
10
|
+
* @static
|
|
11
|
+
* @memberOf _
|
|
12
|
+
* @since 0.10.0
|
|
13
|
+
* @category Object
|
|
14
|
+
* @param {Object} object The destination object.
|
|
15
|
+
* @param {...Object} [sources] The source objects.
|
|
16
|
+
* @returns {Object} Returns `object`.
|
|
17
|
+
* @see _.assignIn
|
|
18
|
+
* @example
|
|
19
|
+
*
|
|
20
|
+
* function Foo() {
|
|
21
|
+
* this.a = 1;
|
|
22
|
+
* }
|
|
23
|
+
*
|
|
24
|
+
* function Bar() {
|
|
25
|
+
* this.c = 3;
|
|
26
|
+
* }
|
|
27
|
+
*
|
|
28
|
+
* Foo.prototype.b = 2;
|
|
29
|
+
* Bar.prototype.d = 4;
|
|
30
|
+
*
|
|
31
|
+
* _.assign({ 'a': 0 }, new Foo, new Bar);
|
|
32
|
+
* // => { 'a': 1, 'c': 3 }
|
|
33
|
+
*/
|
|
34
|
+
declare var assign: Function;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export default assignIn;
|
|
2
|
+
/**
|
|
3
|
+
* This method is like `_.assign` except that it iterates over own and
|
|
4
|
+
* inherited source properties.
|
|
5
|
+
*
|
|
6
|
+
* **Note:** This method mutates `object`.
|
|
7
|
+
*
|
|
8
|
+
* @static
|
|
9
|
+
* @memberOf _
|
|
10
|
+
* @since 4.0.0
|
|
11
|
+
* @alias extend
|
|
12
|
+
* @category Object
|
|
13
|
+
* @param {Object} object The destination object.
|
|
14
|
+
* @param {...Object} [sources] The source objects.
|
|
15
|
+
* @returns {Object} Returns `object`.
|
|
16
|
+
* @see _.assign
|
|
17
|
+
* @example
|
|
18
|
+
*
|
|
19
|
+
* function Foo() {
|
|
20
|
+
* this.a = 1;
|
|
21
|
+
* }
|
|
22
|
+
*
|
|
23
|
+
* function Bar() {
|
|
24
|
+
* this.c = 3;
|
|
25
|
+
* }
|
|
26
|
+
*
|
|
27
|
+
* Foo.prototype.b = 2;
|
|
28
|
+
* Bar.prototype.d = 4;
|
|
29
|
+
*
|
|
30
|
+
* _.assignIn({ 'a': 0 }, new Foo, new Bar);
|
|
31
|
+
* // => { 'a': 1, 'b': 2, 'c': 3, 'd': 4 }
|
|
32
|
+
*/
|
|
33
|
+
declare var assignIn: Function;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default assignInWith;
|
|
2
|
+
/**
|
|
3
|
+
* This method is like `_.assignIn` except that it accepts `customizer`
|
|
4
|
+
* which is invoked to produce the assigned values. If `customizer` returns
|
|
5
|
+
* `undefined`, assignment is handled by the method instead. The `customizer`
|
|
6
|
+
* is invoked with five arguments: (objValue, srcValue, key, object, source).
|
|
7
|
+
*
|
|
8
|
+
* **Note:** This method mutates `object`.
|
|
9
|
+
*
|
|
10
|
+
* @static
|
|
11
|
+
* @memberOf _
|
|
12
|
+
* @since 4.0.0
|
|
13
|
+
* @alias extendWith
|
|
14
|
+
* @category Object
|
|
15
|
+
* @param {Object} object The destination object.
|
|
16
|
+
* @param {...Object} sources The source objects.
|
|
17
|
+
* @param {Function} [customizer] The function to customize assigned values.
|
|
18
|
+
* @returns {Object} Returns `object`.
|
|
19
|
+
* @see _.assignWith
|
|
20
|
+
* @example
|
|
21
|
+
*
|
|
22
|
+
* function customizer(objValue, srcValue) {
|
|
23
|
+
* return _.isUndefined(objValue) ? srcValue : objValue;
|
|
24
|
+
* }
|
|
25
|
+
*
|
|
26
|
+
* var defaults = _.partialRight(_.assignInWith, customizer);
|
|
27
|
+
*
|
|
28
|
+
* defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
|
|
29
|
+
* // => { 'a': 1, 'b': 2 }
|
|
30
|
+
*/
|
|
31
|
+
declare var assignInWith: Function;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default assignWith;
|
|
2
|
+
/**
|
|
3
|
+
* This method is like `_.assign` except that it accepts `customizer`
|
|
4
|
+
* which is invoked to produce the assigned values. If `customizer` returns
|
|
5
|
+
* `undefined`, assignment is handled by the method instead. The `customizer`
|
|
6
|
+
* is invoked with five arguments: (objValue, srcValue, key, object, source).
|
|
7
|
+
*
|
|
8
|
+
* **Note:** This method mutates `object`.
|
|
9
|
+
*
|
|
10
|
+
* @static
|
|
11
|
+
* @memberOf _
|
|
12
|
+
* @since 4.0.0
|
|
13
|
+
* @category Object
|
|
14
|
+
* @param {Object} object The destination object.
|
|
15
|
+
* @param {...Object} sources The source objects.
|
|
16
|
+
* @param {Function} [customizer] The function to customize assigned values.
|
|
17
|
+
* @returns {Object} Returns `object`.
|
|
18
|
+
* @see _.assignInWith
|
|
19
|
+
* @example
|
|
20
|
+
*
|
|
21
|
+
* function customizer(objValue, srcValue) {
|
|
22
|
+
* return _.isUndefined(objValue) ? srcValue : objValue;
|
|
23
|
+
* }
|
|
24
|
+
*
|
|
25
|
+
* var defaults = _.partialRight(_.assignWith, customizer);
|
|
26
|
+
*
|
|
27
|
+
* defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 });
|
|
28
|
+
* // => { 'a': 1, 'b': 2 }
|
|
29
|
+
*/
|
|
30
|
+
declare var assignWith: Function;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default at;
|
|
2
|
+
/**
|
|
3
|
+
* Creates an array of values corresponding to `paths` of `object`.
|
|
4
|
+
*
|
|
5
|
+
* @static
|
|
6
|
+
* @memberOf _
|
|
7
|
+
* @since 1.0.0
|
|
8
|
+
* @category Object
|
|
9
|
+
* @param {Object} object The object to iterate over.
|
|
10
|
+
* @param {...(string|string[])} [paths] The property paths to pick.
|
|
11
|
+
* @returns {Array} Returns the picked values.
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };
|
|
15
|
+
*
|
|
16
|
+
* _.at(object, ['a[0].b.c', 'a[1]']);
|
|
17
|
+
* // => [3, 4]
|
|
18
|
+
*/
|
|
19
|
+
declare var at: Function;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default attempt;
|
|
2
|
+
/**
|
|
3
|
+
* Attempts to invoke `func`, returning either the result or the caught error
|
|
4
|
+
* object. Any additional arguments are provided to `func` when it's invoked.
|
|
5
|
+
*
|
|
6
|
+
* @static
|
|
7
|
+
* @memberOf _
|
|
8
|
+
* @since 3.0.0
|
|
9
|
+
* @category Util
|
|
10
|
+
* @param {Function} func The function to attempt.
|
|
11
|
+
* @param {...*} [args] The arguments to invoke `func` with.
|
|
12
|
+
* @returns {*} Returns the `func` result or error object.
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* // Avoid throwing errors for invalid selectors.
|
|
16
|
+
* var elements = _.attempt(function(selector) {
|
|
17
|
+
* return document.querySelectorAll(selector);
|
|
18
|
+
* }, '>_>');
|
|
19
|
+
*
|
|
20
|
+
* if (_.isError(elements)) {
|
|
21
|
+
* elements = [];
|
|
22
|
+
* }
|
|
23
|
+
*/
|
|
24
|
+
declare var attempt: Function;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export default before;
|
|
2
|
+
/**
|
|
3
|
+
* Creates a function that invokes `func`, with the `this` binding and arguments
|
|
4
|
+
* of the created function, while it's called less than `n` times. Subsequent
|
|
5
|
+
* calls to the created function return the result of the last `func` invocation.
|
|
6
|
+
*
|
|
7
|
+
* @static
|
|
8
|
+
* @memberOf _
|
|
9
|
+
* @since 3.0.0
|
|
10
|
+
* @category Function
|
|
11
|
+
* @param {number} n The number of calls at which `func` is no longer invoked.
|
|
12
|
+
* @param {Function} func The function to restrict.
|
|
13
|
+
* @returns {Function} Returns the new restricted function.
|
|
14
|
+
* @example
|
|
15
|
+
*
|
|
16
|
+
* jQuery(element).on('click', _.before(5, addContactToList));
|
|
17
|
+
* // => Allows adding up to 4 contacts to the list.
|
|
18
|
+
*/
|
|
19
|
+
declare function before(n: number, func: Function): Function;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export default bind;
|
|
2
|
+
/**
|
|
3
|
+
* Creates a function that invokes `func` with the `this` binding of `thisArg`
|
|
4
|
+
* and `partials` prepended to the arguments it receives.
|
|
5
|
+
*
|
|
6
|
+
* The `_.bind.placeholder` value, which defaults to `_` in monolithic builds,
|
|
7
|
+
* may be used as a placeholder for partially applied arguments.
|
|
8
|
+
*
|
|
9
|
+
* **Note:** Unlike native `Function#bind`, this method doesn't set the "length"
|
|
10
|
+
* property of bound functions.
|
|
11
|
+
*
|
|
12
|
+
* @static
|
|
13
|
+
* @memberOf _
|
|
14
|
+
* @since 0.1.0
|
|
15
|
+
* @category Function
|
|
16
|
+
* @param {Function} func The function to bind.
|
|
17
|
+
* @param {*} thisArg The `this` binding of `func`.
|
|
18
|
+
* @param {...*} [partials] The arguments to be partially applied.
|
|
19
|
+
* @returns {Function} Returns the new bound function.
|
|
20
|
+
* @example
|
|
21
|
+
*
|
|
22
|
+
* function greet(greeting, punctuation) {
|
|
23
|
+
* return greeting + ' ' + this.user + punctuation;
|
|
24
|
+
* }
|
|
25
|
+
*
|
|
26
|
+
* var object = { 'user': 'fred' };
|
|
27
|
+
*
|
|
28
|
+
* var bound = _.bind(greet, object, 'hi');
|
|
29
|
+
* bound('!');
|
|
30
|
+
* // => 'hi fred!'
|
|
31
|
+
*
|
|
32
|
+
* // Bound with placeholders.
|
|
33
|
+
* var bound = _.bind(greet, object, _, '!');
|
|
34
|
+
* bound('hi');
|
|
35
|
+
* // => 'hi fred!'
|
|
36
|
+
*/
|
|
37
|
+
declare var bind: Function;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export default bindAll;
|
|
2
|
+
/**
|
|
3
|
+
* Binds methods of an object to the object itself, overwriting the existing
|
|
4
|
+
* method.
|
|
5
|
+
*
|
|
6
|
+
* **Note:** This method doesn't set the "length" property of bound functions.
|
|
7
|
+
*
|
|
8
|
+
* @static
|
|
9
|
+
* @since 0.1.0
|
|
10
|
+
* @memberOf _
|
|
11
|
+
* @category Util
|
|
12
|
+
* @param {Object} object The object to bind and assign the bound methods to.
|
|
13
|
+
* @param {...(string|string[])} methodNames The object method names to bind.
|
|
14
|
+
* @returns {Object} Returns `object`.
|
|
15
|
+
* @example
|
|
16
|
+
*
|
|
17
|
+
* var view = {
|
|
18
|
+
* 'label': 'docs',
|
|
19
|
+
* 'click': function() {
|
|
20
|
+
* console.log('clicked ' + this.label);
|
|
21
|
+
* }
|
|
22
|
+
* };
|
|
23
|
+
*
|
|
24
|
+
* _.bindAll(view, ['click']);
|
|
25
|
+
* jQuery(element).on('click', view.click);
|
|
26
|
+
* // => Logs 'clicked docs' when clicked.
|
|
27
|
+
*/
|
|
28
|
+
declare var bindAll: Function;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export default bindKey;
|
|
2
|
+
/**
|
|
3
|
+
* Creates a function that invokes the method at `object[key]` with `partials`
|
|
4
|
+
* prepended to the arguments it receives.
|
|
5
|
+
*
|
|
6
|
+
* This method differs from `_.bind` by allowing bound functions to reference
|
|
7
|
+
* methods that may be redefined or don't yet exist. See
|
|
8
|
+
* [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern)
|
|
9
|
+
* for more details.
|
|
10
|
+
*
|
|
11
|
+
* The `_.bindKey.placeholder` value, which defaults to `_` in monolithic
|
|
12
|
+
* builds, may be used as a placeholder for partially applied arguments.
|
|
13
|
+
*
|
|
14
|
+
* @static
|
|
15
|
+
* @memberOf _
|
|
16
|
+
* @since 0.10.0
|
|
17
|
+
* @category Function
|
|
18
|
+
* @param {Object} object The object to invoke the method on.
|
|
19
|
+
* @param {string} key The key of the method.
|
|
20
|
+
* @param {...*} [partials] The arguments to be partially applied.
|
|
21
|
+
* @returns {Function} Returns the new bound function.
|
|
22
|
+
* @example
|
|
23
|
+
*
|
|
24
|
+
* var object = {
|
|
25
|
+
* 'user': 'fred',
|
|
26
|
+
* 'greet': function(greeting, punctuation) {
|
|
27
|
+
* return greeting + ' ' + this.user + punctuation;
|
|
28
|
+
* }
|
|
29
|
+
* };
|
|
30
|
+
*
|
|
31
|
+
* var bound = _.bindKey(object, 'greet', 'hi');
|
|
32
|
+
* bound('!');
|
|
33
|
+
* // => 'hi fred!'
|
|
34
|
+
*
|
|
35
|
+
* object.greet = function(greeting, punctuation) {
|
|
36
|
+
* return greeting + 'ya ' + this.user + punctuation;
|
|
37
|
+
* };
|
|
38
|
+
*
|
|
39
|
+
* bound('!');
|
|
40
|
+
* // => 'hiya fred!'
|
|
41
|
+
*
|
|
42
|
+
* // Bound with placeholders.
|
|
43
|
+
* var bound = _.bindKey(object, 'greet', _, '!');
|
|
44
|
+
* bound('hi');
|
|
45
|
+
* // => 'hiya fred!'
|
|
46
|
+
*/
|
|
47
|
+
declare var bindKey: Function;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default camelCase;
|
|
2
|
+
/**
|
|
3
|
+
* Converts `string` to [camel case](https://en.wikipedia.org/wiki/CamelCase).
|
|
4
|
+
*
|
|
5
|
+
* @static
|
|
6
|
+
* @memberOf _
|
|
7
|
+
* @since 3.0.0
|
|
8
|
+
* @category String
|
|
9
|
+
* @param {string} [string=''] The string to convert.
|
|
10
|
+
* @returns {string} Returns the camel cased string.
|
|
11
|
+
* @example
|
|
12
|
+
*
|
|
13
|
+
* _.camelCase('Foo Bar');
|
|
14
|
+
* // => 'fooBar'
|
|
15
|
+
*
|
|
16
|
+
* _.camelCase('--foo-bar--');
|
|
17
|
+
* // => 'fooBar'
|
|
18
|
+
*
|
|
19
|
+
* _.camelCase('__FOO_BAR__');
|
|
20
|
+
* // => 'fooBar'
|
|
21
|
+
*/
|
|
22
|
+
declare var camelCase: Function;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export default capitalize;
|
|
2
|
+
/**
|
|
3
|
+
* Converts the first character of `string` to upper case and the remaining
|
|
4
|
+
* to lower case.
|
|
5
|
+
*
|
|
6
|
+
* @static
|
|
7
|
+
* @memberOf _
|
|
8
|
+
* @since 3.0.0
|
|
9
|
+
* @category String
|
|
10
|
+
* @param {string} [string=''] The string to capitalize.
|
|
11
|
+
* @returns {string} Returns the capitalized string.
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* _.capitalize('FRED');
|
|
15
|
+
* // => 'Fred'
|
|
16
|
+
*/
|
|
17
|
+
declare function capitalize(string?: string): string;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export default castArray;
|
|
2
|
+
/**
|
|
3
|
+
* Casts `value` as an array if it's not one.
|
|
4
|
+
*
|
|
5
|
+
* @static
|
|
6
|
+
* @memberOf _
|
|
7
|
+
* @since 4.4.0
|
|
8
|
+
* @category Lang
|
|
9
|
+
* @param {*} value The value to inspect.
|
|
10
|
+
* @returns {Array} Returns the cast array.
|
|
11
|
+
* @example
|
|
12
|
+
*
|
|
13
|
+
* _.castArray(1);
|
|
14
|
+
* // => [1]
|
|
15
|
+
*
|
|
16
|
+
* _.castArray({ 'a': 1 });
|
|
17
|
+
* // => [{ 'a': 1 }]
|
|
18
|
+
*
|
|
19
|
+
* _.castArray('abc');
|
|
20
|
+
* // => ['abc']
|
|
21
|
+
*
|
|
22
|
+
* _.castArray(null);
|
|
23
|
+
* // => [null]
|
|
24
|
+
*
|
|
25
|
+
* _.castArray(undefined);
|
|
26
|
+
* // => [undefined]
|
|
27
|
+
*
|
|
28
|
+
* _.castArray();
|
|
29
|
+
* // => []
|
|
30
|
+
*
|
|
31
|
+
* var array = [1, 2, 3];
|
|
32
|
+
* console.log(_.castArray(array) === array);
|
|
33
|
+
* // => true
|
|
34
|
+
*/
|
|
35
|
+
declare function castArray(...args: any[]): any[];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default ceil;
|
|
2
|
+
/**
|
|
3
|
+
* Computes `number` rounded up to `precision`.
|
|
4
|
+
*
|
|
5
|
+
* @static
|
|
6
|
+
* @memberOf _
|
|
7
|
+
* @since 3.10.0
|
|
8
|
+
* @category Math
|
|
9
|
+
* @param {number} number The number to round up.
|
|
10
|
+
* @param {number} [precision=0] The precision to round up to.
|
|
11
|
+
* @returns {number} Returns the rounded up number.
|
|
12
|
+
* @example
|
|
13
|
+
*
|
|
14
|
+
* _.ceil(4.006);
|
|
15
|
+
* // => 5
|
|
16
|
+
*
|
|
17
|
+
* _.ceil(6.004, 2);
|
|
18
|
+
* // => 6.01
|
|
19
|
+
*
|
|
20
|
+
* _.ceil(6040, -2);
|
|
21
|
+
* // => 6100
|
|
22
|
+
*/
|
|
23
|
+
declare var ceil: Function;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export default chain;
|
|
2
|
+
/**
|
|
3
|
+
* Creates a `lodash` wrapper instance that wraps `value` with explicit method
|
|
4
|
+
* chain sequences enabled. The result of such sequences must be unwrapped
|
|
5
|
+
* with `_#value`.
|
|
6
|
+
*
|
|
7
|
+
* @static
|
|
8
|
+
* @memberOf _
|
|
9
|
+
* @since 1.3.0
|
|
10
|
+
* @category Seq
|
|
11
|
+
* @param {*} value The value to wrap.
|
|
12
|
+
* @returns {Object} Returns the new `lodash` wrapper instance.
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* var users = [
|
|
16
|
+
* { 'user': 'barney', 'age': 36 },
|
|
17
|
+
* { 'user': 'fred', 'age': 40 },
|
|
18
|
+
* { 'user': 'pebbles', 'age': 1 }
|
|
19
|
+
* ];
|
|
20
|
+
*
|
|
21
|
+
* var youngest = _
|
|
22
|
+
* .chain(users)
|
|
23
|
+
* .sortBy('age')
|
|
24
|
+
* .map(function(o) {
|
|
25
|
+
* return o.user + ' is ' + o.age;
|
|
26
|
+
* })
|
|
27
|
+
* .head()
|
|
28
|
+
* .value();
|
|
29
|
+
* // => 'pebbles is 1'
|
|
30
|
+
*/
|
|
31
|
+
declare function chain(value: any): Object;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export default chunk;
|
|
2
|
+
/**
|
|
3
|
+
* Creates an array of elements split into groups the length of `size`.
|
|
4
|
+
* If `array` can't be split evenly, the final chunk will be the remaining
|
|
5
|
+
* elements.
|
|
6
|
+
*
|
|
7
|
+
* @static
|
|
8
|
+
* @memberOf _
|
|
9
|
+
* @since 3.0.0
|
|
10
|
+
* @category Array
|
|
11
|
+
* @param {Array} array The array to process.
|
|
12
|
+
* @param {number} [size=1] The length of each chunk
|
|
13
|
+
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.
|
|
14
|
+
* @returns {Array} Returns the new array of chunks.
|
|
15
|
+
* @example
|
|
16
|
+
*
|
|
17
|
+
* _.chunk(['a', 'b', 'c', 'd'], 2);
|
|
18
|
+
* // => [['a', 'b'], ['c', 'd']]
|
|
19
|
+
*
|
|
20
|
+
* _.chunk(['a', 'b', 'c', 'd'], 3);
|
|
21
|
+
* // => [['a', 'b', 'c'], ['d']]
|
|
22
|
+
*/
|
|
23
|
+
declare function chunk(array: any[], size?: number, guard: any): any[];
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export default clamp;
|
|
2
|
+
/**
|
|
3
|
+
* Clamps `number` within the inclusive `lower` and `upper` bounds.
|
|
4
|
+
*
|
|
5
|
+
* @static
|
|
6
|
+
* @memberOf _
|
|
7
|
+
* @since 4.0.0
|
|
8
|
+
* @category Number
|
|
9
|
+
* @param {number} number The number to clamp.
|
|
10
|
+
* @param {number} [lower] The lower bound.
|
|
11
|
+
* @param {number} upper The upper bound.
|
|
12
|
+
* @returns {number} Returns the clamped number.
|
|
13
|
+
* @example
|
|
14
|
+
*
|
|
15
|
+
* _.clamp(-10, -5, 5);
|
|
16
|
+
* // => -5
|
|
17
|
+
*
|
|
18
|
+
* _.clamp(10, -5, 5);
|
|
19
|
+
* // => 5
|
|
20
|
+
*/
|
|
21
|
+
declare function clamp(number: number, lower?: number, upper: number): number;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export default clone;
|
|
2
|
+
/**
|
|
3
|
+
* Creates a shallow clone of `value`.
|
|
4
|
+
*
|
|
5
|
+
* **Note:** This method is loosely based on the
|
|
6
|
+
* [structured clone algorithm](https://mdn.io/Structured_clone_algorithm)
|
|
7
|
+
* and supports cloning arrays, array buffers, booleans, date objects, maps,
|
|
8
|
+
* numbers, `Object` objects, regexes, sets, strings, symbols, and typed
|
|
9
|
+
* arrays. The own enumerable properties of `arguments` objects are cloned
|
|
10
|
+
* as plain objects. An empty object is returned for uncloneable values such
|
|
11
|
+
* as error objects, functions, DOM nodes, and WeakMaps.
|
|
12
|
+
*
|
|
13
|
+
* @static
|
|
14
|
+
* @memberOf _
|
|
15
|
+
* @since 0.1.0
|
|
16
|
+
* @category Lang
|
|
17
|
+
* @param {*} value The value to clone.
|
|
18
|
+
* @returns {*} Returns the cloned value.
|
|
19
|
+
* @see _.cloneDeep
|
|
20
|
+
* @example
|
|
21
|
+
*
|
|
22
|
+
* var objects = [{ 'a': 1 }, { 'b': 2 }];
|
|
23
|
+
*
|
|
24
|
+
* var shallow = _.clone(objects);
|
|
25
|
+
* console.log(shallow[0] === objects[0]);
|
|
26
|
+
* // => true
|
|
27
|
+
*/
|
|
28
|
+
declare function clone(value: any): any;
|