@bitfiber/utils 1.1.1 → 1.1.2
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/CONTRIBUTING.md +26 -17
- package/LICENSE.txt +1 -1
- package/README.md +46 -36
- package/dist/cjs/arr/at/at.js +7 -7
- package/dist/cjs/arr/at/at.js.map +1 -1
- package/dist/cjs/arr/cnd/cnd.js +94 -94
- package/dist/cjs/arr/cnd/cnd.js.map +1 -1
- package/dist/cjs/arr/diff-arr/diff-arr.js +33 -33
- package/dist/cjs/arr/diff-arr/diff-arr.js.map +1 -1
- package/dist/cjs/arr/fill/fill.js +7 -7
- package/dist/cjs/arr/for-each-arr/for-each-arr.js +21 -21
- package/dist/cjs/arr/for-each-arr/for-each-arr.js.map +1 -1
- package/dist/cjs/arr/index-by/index-by.js +15 -15
- package/dist/cjs/arr/index-by/index-by.js.map +1 -1
- package/dist/cjs/arr/index.js +19 -19
- package/dist/cjs/arr/pluck/pluck.js +11 -11
- package/dist/cjs/arr/within/within.js +9 -9
- package/dist/cjs/common/copy/copy.js +83 -83
- package/dist/cjs/common/copy/copy.js.map +1 -1
- package/dist/cjs/common/equals/equals.js +119 -119
- package/dist/cjs/common/equals/equals.js.map +1 -1
- package/dist/cjs/common/error.js +13 -13
- package/dist/cjs/common/error.js.map +1 -1
- package/dist/cjs/common/for-each/for-each.js +36 -36
- package/dist/cjs/common/for-each/for-each.js.map +1 -1
- package/dist/cjs/common/get-unique-num-id/get-unique-num-id.js +8 -8
- package/dist/cjs/common/get-unique-str-id/get-unique-str-id.js +10 -10
- package/dist/cjs/common/get-unique-str-id/get-unique-str-id.js.map +1 -1
- package/dist/cjs/common/has-iterator/has-iterator.js +7 -7
- package/dist/cjs/common/index.js +61 -61
- package/dist/cjs/common/interrupt.js +4 -4
- package/dist/cjs/common/is/is.js +130 -128
- package/dist/cjs/common/is/is.js.map +1 -1
- package/dist/cjs/common/is-empty/is-empty.js +28 -28
- package/dist/cjs/common/is-empty/is-empty.js.map +1 -1
- package/dist/cjs/common/random/random.js +9 -8
- package/dist/cjs/common/random/random.js.map +1 -1
- package/dist/cjs/common/same/same.js +7 -7
- package/dist/cjs/common/stub/stub.js +7 -7
- package/dist/cjs/common/to-float/to-float.js +9 -9
- package/dist/cjs/common/to-int/to-int.js +9 -9
- package/dist/cjs/common/to-sorted-string/to-sorted-string.js +52 -52
- package/dist/cjs/common/to-sorted-string/to-sorted-string.js.map +1 -1
- package/dist/cjs/common/types.js +2 -2
- package/dist/cjs/dom/closest/closest.js +20 -24
- package/dist/cjs/dom/closest/closest.js.map +1 -1
- package/dist/cjs/dom/document/document.js +18 -18
- package/dist/cjs/dom/document/document.js.map +1 -1
- package/dist/cjs/dom/download-file/download-file.js +27 -29
- package/dist/cjs/dom/download-file/download-file.js.map +1 -1
- package/dist/cjs/dom/for-each-elements/for-each-elements.js +12 -12
- package/dist/cjs/dom/for-each-elements/for-each-elements.js.map +1 -1
- package/dist/cjs/dom/for-each-nodes/for-each-nodes.js +12 -12
- package/dist/cjs/dom/for-each-nodes/for-each-nodes.js.map +1 -1
- package/dist/cjs/dom/get-all-styles/get-all-styles.js +9 -9
- package/dist/cjs/dom/get-body/get-body.js +9 -9
- package/dist/cjs/dom/get-html/get-html.js +9 -9
- package/dist/cjs/dom/get-non-static-parent/get-non-static-parent.js +8 -8
- package/dist/cjs/dom/get-offset-from-doc/get-offset-from-doc.js +17 -17
- package/dist/cjs/dom/get-offset-from-parent/get-offset-from-parent.js +41 -41
- package/dist/cjs/dom/get-offset-from-parent/get-offset-from-parent.js.map +1 -1
- package/dist/cjs/dom/get-offset-from-win/get-offset-from-win.js +7 -7
- package/dist/cjs/dom/get-scroll-width/get-scroll-width.js +28 -27
- package/dist/cjs/dom/get-scroll-width/get-scroll-width.js.map +1 -1
- package/dist/cjs/dom/get-style/get-style.js +21 -21
- package/dist/cjs/dom/get-style/get-style.js.map +1 -1
- package/dist/cjs/dom/get-styles/get-styles.js +10 -10
- package/dist/cjs/dom/get-valid-style-name/get-valid-style-name.js +39 -39
- package/dist/cjs/dom/get-valid-style-name/get-valid-style-name.js.map +1 -1
- package/dist/cjs/dom/get-window/get-window.js +17 -17
- package/dist/cjs/dom/get-window/get-window.js.map +1 -1
- package/dist/cjs/dom/has-name/has-name.js +7 -7
- package/dist/cjs/dom/index.js +52 -52
- package/dist/cjs/dom/is-comment/is-comment.js +7 -7
- package/dist/cjs/dom/is-element/is-element.js +7 -7
- package/dist/cjs/dom/is-text/is-text.js +7 -7
- package/dist/cjs/dom/set-offset-from-parent/set-offset-from-parent.js +38 -38
- package/dist/cjs/dom/set-offset-from-parent/set-offset-from-parent.js.map +1 -1
- package/dist/cjs/dom/set-style/set-style.js +10 -10
- package/dist/cjs/dom/set-styles/set-styles.js +13 -13
- package/dist/cjs/dom/types.js +2 -2
- package/dist/cjs/env/get-browser/get-browser.js +54 -54
- package/dist/cjs/env/get-browser/get-browser.js.map +1 -1
- package/dist/cjs/env/get-engine/get-engine.js +18 -18
- package/dist/cjs/env/get-engine/get-engine.js.map +1 -1
- package/dist/cjs/env/get-os/get-os.js +32 -32
- package/dist/cjs/env/get-os/get-os.js.map +1 -1
- package/dist/cjs/env/get-platform/get-platform.js +32 -32
- package/dist/cjs/env/get-platform/get-platform.js.map +1 -1
- package/dist/cjs/env/index.js +44 -44
- package/dist/cjs/env/is-browser/is-browser.js +9 -9
- package/dist/cjs/env/is-chrome-like/is-chrome-like.js +9 -9
- package/dist/cjs/env/is-desktop/is-desktop.js +9 -9
- package/dist/cjs/env/is-engine/is-engine.js +9 -9
- package/dist/cjs/env/is-firefox-like/is-firefox-like.js +9 -9
- package/dist/cjs/env/is-mobile/is-mobile.js +9 -9
- package/dist/cjs/env/is-os/is-os.js +9 -9
- package/dist/cjs/env/is-portable/is-portable.js +8 -8
- package/dist/cjs/env/is-safari-like/is-safari-like.js +9 -9
- package/dist/cjs/env/is-stationary/is-stationary.js +8 -8
- package/dist/cjs/env/is-tablet/is-tablet.js +9 -9
- package/dist/cjs/env/is-tv/is-tv.js +9 -9
- package/dist/cjs/env/matches/matches.js +23 -23
- package/dist/cjs/env/matches/matches.js.map +1 -1
- package/dist/cjs/env/matches-with-browsers/matches-with-browsers.js +35 -35
- package/dist/cjs/env/matches-with-browsers/matches-with-browsers.js.map +1 -1
- package/dist/cjs/env/matches-with-version/matches-with-version.js +39 -39
- package/dist/cjs/env/matches-with-version/matches-with-version.js.map +1 -1
- package/dist/cjs/env/private/private.js +58 -58
- package/dist/cjs/env/private/private.js.map +1 -1
- package/dist/cjs/env/types.js +2 -2
- package/dist/cjs/env/user-agent/user-agent.js +24 -24
- package/dist/cjs/env/user-agent/user-agent.js.map +1 -1
- package/dist/cjs/index.js +10 -10
- package/dist/cjs/num/in-range/in-range.js +27 -25
- package/dist/cjs/num/in-range/in-range.js.map +1 -1
- package/dist/cjs/num/index.js +7 -7
- package/dist/cjs/num/round/round.js +8 -8
- package/dist/cjs/obj/constant/constant.js +7 -7
- package/dist/cjs/obj/deep-constant/deep-constant.js +22 -15
- package/dist/cjs/obj/deep-constant/deep-constant.js.map +1 -1
- package/dist/cjs/obj/diff-obj/diff-obj.js +45 -45
- package/dist/cjs/obj/diff-obj/diff-obj.js.map +1 -1
- package/dist/cjs/obj/exclude/exclude.js +15 -15
- package/dist/cjs/obj/exclude/exclude.js.map +1 -1
- package/dist/cjs/obj/extend/extend.js +44 -40
- package/dist/cjs/obj/extend/extend.js.map +1 -1
- package/dist/cjs/obj/for-each-obj/for-each-obj.js +13 -13
- package/dist/cjs/obj/for-each-obj/for-each-obj.js.map +1 -1
- package/dist/cjs/obj/has-own/has-own.js +7 -7
- package/dist/cjs/obj/has-own/has-own.js.map +1 -1
- package/dist/cjs/obj/include/include.js +15 -15
- package/dist/cjs/obj/include/include.js.map +1 -1
- package/dist/cjs/obj/index.js +28 -28
- package/dist/cjs/obj/keys/keys.js +7 -7
- package/dist/cjs/obj/map-obj/map-obj.js +10 -10
- package/dist/cjs/obj/map-obj-to-arr/map-obj-to-arr.js +10 -10
- package/dist/cjs/obj/values/values.js +10 -10
- package/dist/cjs/str/index.js +9 -9
- package/dist/cjs/str/to-camel-case/to-camel-case.js +16 -12
- package/dist/cjs/str/to-camel-case/to-camel-case.js.map +1 -1
- package/dist/cjs/str/to-hash/to-hash.js +17 -18
- package/dist/cjs/str/to-hash/to-hash.js.map +1 -1
- package/dist/cjs/str/with-capital/with-capital.js +7 -7
- package/dist/esm/arr/at/at.js +3 -3
- package/dist/esm/arr/at/at.js.map +1 -1
- package/dist/esm/arr/cnd/cnd.js +90 -90
- package/dist/esm/arr/cnd/cnd.js.map +1 -1
- package/dist/esm/arr/diff-arr/diff-arr.js +29 -29
- package/dist/esm/arr/diff-arr/diff-arr.js.map +1 -1
- package/dist/esm/arr/fill/fill.js +3 -3
- package/dist/esm/arr/for-each-arr/for-each-arr.js +17 -17
- package/dist/esm/arr/for-each-arr/for-each-arr.js.map +1 -1
- package/dist/esm/arr/index-by/index-by.js +11 -11
- package/dist/esm/arr/index-by/index-by.js.map +1 -1
- package/dist/esm/arr/index.js +8 -8
- package/dist/esm/arr/pluck/pluck.js +7 -7
- package/dist/esm/arr/within/within.js +5 -5
- package/dist/esm/common/copy/copy.js +79 -79
- package/dist/esm/common/copy/copy.js.map +1 -1
- package/dist/esm/common/equals/equals.js +115 -115
- package/dist/esm/common/equals/equals.js.map +1 -1
- package/dist/esm/common/error.js +9 -9
- package/dist/esm/common/error.js.map +1 -1
- package/dist/esm/common/for-each/for-each.js +32 -32
- package/dist/esm/common/for-each/for-each.js.map +1 -1
- package/dist/esm/common/get-unique-num-id/get-unique-num-id.js +4 -4
- package/dist/esm/common/get-unique-str-id/get-unique-str-id.js +6 -6
- package/dist/esm/common/get-unique-str-id/get-unique-str-id.js.map +1 -1
- package/dist/esm/common/has-iterator/has-iterator.js +3 -3
- package/dist/esm/common/index.js +16 -16
- package/dist/esm/common/interrupt.js +1 -1
- package/dist/esm/common/is/is.js +100 -98
- package/dist/esm/common/is/is.js.map +1 -1
- package/dist/esm/common/is-empty/is-empty.js +24 -24
- package/dist/esm/common/is-empty/is-empty.js.map +1 -1
- package/dist/esm/common/random/random.js +5 -4
- package/dist/esm/common/random/random.js.map +1 -1
- package/dist/esm/common/same/same.js +3 -3
- package/dist/esm/common/stub/stub.js +3 -3
- package/dist/esm/common/to-float/to-float.js +5 -5
- package/dist/esm/common/to-int/to-int.js +5 -5
- package/dist/esm/common/to-sorted-string/to-sorted-string.js +48 -48
- package/dist/esm/common/to-sorted-string/to-sorted-string.js.map +1 -1
- package/dist/esm/common/types.js +1 -1
- package/dist/esm/dom/closest/closest.js +16 -20
- package/dist/esm/dom/closest/closest.js.map +1 -1
- package/dist/esm/dom/document/document.js +13 -13
- package/dist/esm/dom/document/document.js.map +1 -1
- package/dist/esm/dom/download-file/download-file.js +23 -25
- package/dist/esm/dom/download-file/download-file.js.map +1 -1
- package/dist/esm/dom/for-each-elements/for-each-elements.js +8 -8
- package/dist/esm/dom/for-each-elements/for-each-elements.js.map +1 -1
- package/dist/esm/dom/for-each-nodes/for-each-nodes.js +8 -8
- package/dist/esm/dom/for-each-nodes/for-each-nodes.js.map +1 -1
- package/dist/esm/dom/get-all-styles/get-all-styles.js +5 -5
- package/dist/esm/dom/get-body/get-body.js +5 -5
- package/dist/esm/dom/get-html/get-html.js +5 -5
- package/dist/esm/dom/get-non-static-parent/get-non-static-parent.js +4 -4
- package/dist/esm/dom/get-offset-from-doc/get-offset-from-doc.js +13 -13
- package/dist/esm/dom/get-offset-from-parent/get-offset-from-parent.js +37 -37
- package/dist/esm/dom/get-offset-from-parent/get-offset-from-parent.js.map +1 -1
- package/dist/esm/dom/get-offset-from-win/get-offset-from-win.js +3 -3
- package/dist/esm/dom/get-scroll-width/get-scroll-width.js +24 -23
- package/dist/esm/dom/get-scroll-width/get-scroll-width.js.map +1 -1
- package/dist/esm/dom/get-style/get-style.js +17 -17
- package/dist/esm/dom/get-style/get-style.js.map +1 -1
- package/dist/esm/dom/get-styles/get-styles.js +6 -6
- package/dist/esm/dom/get-valid-style-name/get-valid-style-name.js +35 -35
- package/dist/esm/dom/get-valid-style-name/get-valid-style-name.js.map +1 -1
- package/dist/esm/dom/get-window/get-window.js +13 -13
- package/dist/esm/dom/get-window/get-window.js.map +1 -1
- package/dist/esm/dom/has-name/has-name.js +3 -3
- package/dist/esm/dom/index.js +24 -24
- package/dist/esm/dom/is-comment/is-comment.js +3 -3
- package/dist/esm/dom/is-element/is-element.js +3 -3
- package/dist/esm/dom/is-text/is-text.js +3 -3
- package/dist/esm/dom/set-offset-from-parent/set-offset-from-parent.js +34 -34
- package/dist/esm/dom/set-offset-from-parent/set-offset-from-parent.js.map +1 -1
- package/dist/esm/dom/set-style/set-style.js +6 -6
- package/dist/esm/dom/set-styles/set-styles.js +9 -9
- package/dist/esm/dom/types.js +1 -1
- package/dist/esm/env/get-browser/get-browser.js +49 -49
- package/dist/esm/env/get-browser/get-browser.js.map +1 -1
- package/dist/esm/env/get-engine/get-engine.js +13 -13
- package/dist/esm/env/get-engine/get-engine.js.map +1 -1
- package/dist/esm/env/get-os/get-os.js +27 -27
- package/dist/esm/env/get-os/get-os.js.map +1 -1
- package/dist/esm/env/get-platform/get-platform.js +27 -27
- package/dist/esm/env/get-platform/get-platform.js.map +1 -1
- package/dist/esm/env/index.js +20 -20
- package/dist/esm/env/is-browser/is-browser.js +5 -5
- package/dist/esm/env/is-chrome-like/is-chrome-like.js +5 -5
- package/dist/esm/env/is-desktop/is-desktop.js +5 -5
- package/dist/esm/env/is-engine/is-engine.js +5 -5
- package/dist/esm/env/is-firefox-like/is-firefox-like.js +5 -5
- package/dist/esm/env/is-mobile/is-mobile.js +5 -5
- package/dist/esm/env/is-os/is-os.js +5 -5
- package/dist/esm/env/is-portable/is-portable.js +4 -4
- package/dist/esm/env/is-safari-like/is-safari-like.js +5 -5
- package/dist/esm/env/is-stationary/is-stationary.js +4 -4
- package/dist/esm/env/is-tablet/is-tablet.js +5 -5
- package/dist/esm/env/is-tv/is-tv.js +5 -5
- package/dist/esm/env/matches/matches.js +19 -19
- package/dist/esm/env/matches/matches.js.map +1 -1
- package/dist/esm/env/matches-with-browsers/matches-with-browsers.js +31 -31
- package/dist/esm/env/matches-with-browsers/matches-with-browsers.js.map +1 -1
- package/dist/esm/env/matches-with-version/matches-with-version.js +35 -35
- package/dist/esm/env/matches-with-version/matches-with-version.js.map +1 -1
- package/dist/esm/env/private/private.js +52 -52
- package/dist/esm/env/private/private.js.map +1 -1
- package/dist/esm/env/types.js +1 -1
- package/dist/esm/env/user-agent/user-agent.js +19 -19
- package/dist/esm/env/user-agent/user-agent.js.map +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/num/in-range/in-range.js +23 -21
- package/dist/esm/num/in-range/in-range.js.map +1 -1
- package/dist/esm/num/index.js +2 -2
- package/dist/esm/num/round/round.js +4 -4
- package/dist/esm/obj/constant/constant.js +3 -3
- package/dist/esm/obj/deep-constant/deep-constant.js +18 -11
- package/dist/esm/obj/deep-constant/deep-constant.js.map +1 -1
- package/dist/esm/obj/diff-obj/diff-obj.js +41 -41
- package/dist/esm/obj/diff-obj/diff-obj.js.map +1 -1
- package/dist/esm/obj/exclude/exclude.js +11 -11
- package/dist/esm/obj/exclude/exclude.js.map +1 -1
- package/dist/esm/obj/extend/extend.js +39 -35
- package/dist/esm/obj/extend/extend.js.map +1 -1
- package/dist/esm/obj/for-each-obj/for-each-obj.js +9 -9
- package/dist/esm/obj/for-each-obj/for-each-obj.js.map +1 -1
- package/dist/esm/obj/has-own/has-own.js +3 -3
- package/dist/esm/obj/has-own/has-own.js.map +1 -1
- package/dist/esm/obj/include/include.js +11 -11
- package/dist/esm/obj/include/include.js.map +1 -1
- package/dist/esm/obj/index.js +12 -12
- package/dist/esm/obj/keys/keys.js +3 -3
- package/dist/esm/obj/map-obj/map-obj.js +6 -6
- package/dist/esm/obj/map-obj-to-arr/map-obj-to-arr.js +6 -6
- package/dist/esm/obj/values/values.js +6 -6
- package/dist/esm/str/index.js +3 -3
- package/dist/esm/str/to-camel-case/to-camel-case.js +12 -8
- package/dist/esm/str/to-camel-case/to-camel-case.js.map +1 -1
- package/dist/esm/str/to-hash/to-hash.js +13 -14
- package/dist/esm/str/to-hash/to-hash.js.map +1 -1
- package/dist/esm/str/with-capital/with-capital.js +3 -3
- package/dist/types/arr/at/at.d.ts +7 -7
- package/dist/types/arr/at/at.d.ts.map +1 -1
- package/dist/types/arr/cnd/cnd.d.ts +117 -117
- package/dist/types/arr/cnd/cnd.d.ts.map +1 -1
- package/dist/types/arr/diff-arr/diff-arr.d.ts +30 -30
- package/dist/types/arr/fill/fill.d.ts +8 -8
- package/dist/types/arr/for-each-arr/for-each-arr.d.ts +9 -9
- package/dist/types/arr/index-by/index-by.d.ts +9 -9
- package/dist/types/arr/index.d.ts +8 -8
- package/dist/types/arr/pluck/pluck.d.ts +7 -7
- package/dist/types/arr/within/within.d.ts +9 -9
- package/dist/types/common/copy/copy.d.ts +6 -6
- package/dist/types/common/equals/equals.d.ts +12 -12
- package/dist/types/common/error.d.ts +25 -25
- package/dist/types/common/for-each/for-each.d.ts +9 -9
- package/dist/types/common/get-unique-num-id/get-unique-num-id.d.ts +4 -4
- package/dist/types/common/get-unique-str-id/get-unique-str-id.d.ts +6 -4
- package/dist/types/common/get-unique-str-id/get-unique-str-id.d.ts.map +1 -1
- package/dist/types/common/has-iterator/has-iterator.d.ts +5 -5
- package/dist/types/common/index.d.ts +17 -17
- package/dist/types/common/interrupt.d.ts +4 -4
- package/dist/types/common/is/is.d.ts +136 -136
- package/dist/types/common/is-empty/is-empty.d.ts +6 -6
- package/dist/types/common/random/random.d.ts +7 -5
- package/dist/types/common/random/random.d.ts.map +1 -1
- package/dist/types/common/same/same.d.ts +6 -6
- package/dist/types/common/stub/stub.d.ts +4 -4
- package/dist/types/common/to-float/to-float.d.ts +6 -6
- package/dist/types/common/to-int/to-int.d.ts +6 -6
- package/dist/types/common/to-sorted-string/to-sorted-string.d.ts +7 -7
- package/dist/types/common/types.d.ts +64 -64
- package/dist/types/common/types.d.ts.map +1 -1
- package/dist/types/dom/closest/closest.d.ts +6 -6
- package/dist/types/dom/closest/closest.d.ts.map +1 -1
- package/dist/types/dom/document/document.d.ts +12 -12
- package/dist/types/dom/download-file/download-file.d.ts +7 -7
- package/dist/types/dom/download-file/download-file.d.ts.map +1 -1
- package/dist/types/dom/for-each-elements/for-each-elements.d.ts +8 -8
- package/dist/types/dom/for-each-nodes/for-each-nodes.d.ts +7 -7
- package/dist/types/dom/get-all-styles/get-all-styles.d.ts +5 -5
- package/dist/types/dom/get-body/get-body.d.ts +4 -4
- package/dist/types/dom/get-html/get-html.d.ts +4 -4
- package/dist/types/dom/get-non-static-parent/get-non-static-parent.d.ts +5 -5
- package/dist/types/dom/get-offset-from-doc/get-offset-from-doc.d.ts +6 -6
- package/dist/types/dom/get-offset-from-parent/get-offset-from-parent.d.ts +7 -7
- package/dist/types/dom/get-offset-from-win/get-offset-from-win.d.ts +6 -6
- package/dist/types/dom/get-scroll-width/get-scroll-width.d.ts +8 -8
- package/dist/types/dom/get-scroll-width/get-scroll-width.d.ts.map +1 -1
- package/dist/types/dom/get-style/get-style.d.ts +6 -6
- package/dist/types/dom/get-styles/get-styles.d.ts +9 -9
- package/dist/types/dom/get-valid-style-name/get-valid-style-name.d.ts +6 -6
- package/dist/types/dom/get-window/get-window.d.ts +4 -4
- package/dist/types/dom/has-name/has-name.d.ts +6 -6
- package/dist/types/dom/index.d.ts +25 -25
- package/dist/types/dom/is-comment/is-comment.d.ts +5 -5
- package/dist/types/dom/is-element/is-element.d.ts +5 -5
- package/dist/types/dom/is-text/is-text.d.ts +5 -5
- package/dist/types/dom/set-offset-from-parent/set-offset-from-parent.d.ts +8 -8
- package/dist/types/dom/set-style/set-style.d.ts +8 -8
- package/dist/types/dom/set-styles/set-styles.d.ts +8 -8
- package/dist/types/dom/types.d.ts +19 -19
- package/dist/types/env/get-browser/get-browser.d.ts +10 -10
- package/dist/types/env/get-engine/get-engine.d.ts +7 -7
- package/dist/types/env/get-os/get-os.d.ts +8 -8
- package/dist/types/env/get-platform/get-platform.d.ts +7 -7
- package/dist/types/env/index.d.ts +21 -21
- package/dist/types/env/is-browser/is-browser.d.ts +11 -11
- package/dist/types/env/is-chrome-like/is-chrome-like.d.ts +4 -4
- package/dist/types/env/is-desktop/is-desktop.d.ts +4 -4
- package/dist/types/env/is-engine/is-engine.d.ts +8 -8
- package/dist/types/env/is-firefox-like/is-firefox-like.d.ts +4 -4
- package/dist/types/env/is-mobile/is-mobile.d.ts +4 -4
- package/dist/types/env/is-os/is-os.d.ts +9 -9
- package/dist/types/env/is-portable/is-portable.d.ts +4 -4
- package/dist/types/env/is-safari-like/is-safari-like.d.ts +4 -4
- package/dist/types/env/is-stationary/is-stationary.d.ts +4 -4
- package/dist/types/env/is-tablet/is-tablet.d.ts +4 -4
- package/dist/types/env/is-tv/is-tv.d.ts +4 -4
- package/dist/types/env/matches/matches.d.ts +34 -34
- package/dist/types/env/matches-with-browsers/matches-with-browsers.d.ts +23 -23
- package/dist/types/env/matches-with-version/matches-with-version.d.ts +6 -6
- package/dist/types/env/private/private.d.ts +4 -4
- package/dist/types/env/types.d.ts +106 -106
- package/dist/types/env/types.d.ts.map +1 -1
- package/dist/types/env/user-agent/user-agent.d.ts +9 -9
- package/dist/types/index.d.ts +7 -7
- package/dist/types/num/in-range/in-range.d.ts +31 -31
- package/dist/types/num/in-range/in-range.d.ts.map +1 -1
- package/dist/types/num/index.d.ts +2 -2
- package/dist/types/num/round/round.d.ts +7 -7
- package/dist/types/obj/constant/constant.d.ts +6 -6
- package/dist/types/obj/deep-constant/deep-constant.d.ts +7 -6
- package/dist/types/obj/deep-constant/deep-constant.d.ts.map +1 -1
- package/dist/types/obj/diff-obj/diff-obj.d.ts +37 -37
- package/dist/types/obj/exclude/exclude.d.ts +7 -7
- package/dist/types/obj/extend/extend.d.ts +18 -16
- package/dist/types/obj/extend/extend.d.ts.map +1 -1
- package/dist/types/obj/for-each-obj/for-each-obj.d.ts +8 -8
- package/dist/types/obj/has-own/has-own.d.ts +8 -8
- package/dist/types/obj/has-own/has-own.d.ts.map +1 -1
- package/dist/types/obj/include/include.d.ts +7 -7
- package/dist/types/obj/index.d.ts +12 -12
- package/dist/types/obj/keys/keys.d.ts +6 -6
- package/dist/types/obj/map-obj/map-obj.d.ts +7 -7
- package/dist/types/obj/map-obj-to-arr/map-obj-to-arr.d.ts +7 -7
- package/dist/types/obj/values/values.d.ts +6 -6
- package/dist/types/str/index.d.ts +3 -3
- package/dist/types/str/to-camel-case/to-camel-case.d.ts +10 -10
- package/dist/types/str/to-camel-case/to-camel-case.d.ts.map +1 -1
- package/dist/types/str/to-hash/to-hash.d.ts +7 -7
- package/dist/types/str/to-hash/to-hash.d.ts.map +1 -1
- package/dist/types/str/with-capital/with-capital.d.ts +6 -6
- package/package.json +10 -10
- package/src/arr/at/at.ts +1 -2
- package/src/arr/diff-arr/diff-arr.ts +1 -1
- package/src/common/error.ts +2 -2
- package/src/common/get-unique-str-id/get-unique-str-id.ts +2 -0
- package/src/common/is/is.ts +2 -2
- package/src/common/is-empty/is-empty.ts +1 -1
- package/src/common/random/random.ts +6 -3
- package/src/dom/closest/closest.ts +4 -5
- package/src/dom/download-file/download-file.ts +3 -2
- package/src/dom/get-offset-from-parent/get-offset-from-parent.ts +2 -2
- package/src/dom/get-scroll-width/get-scroll-width.ts +3 -2
- package/src/dom/get-style/get-style.ts +3 -3
- package/src/dom/set-offset-from-parent/set-offset-from-parent.ts +3 -3
- package/src/env/matches-with-browsers/matches-with-browsers.ts +1 -1
- package/src/num/in-range/in-range.ts +3 -1
- package/src/obj/deep-constant/deep-constant.ts +12 -4
- package/src/obj/extend/extend.ts +11 -3
- package/src/obj/has-own/has-own.ts +1 -2
- package/src/str/to-camel-case/to-camel-case.ts +7 -1
- package/src/str/to-hash/to-hash.ts +1 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"for-each-obj.js","sourceRoot":"","sources":["../../../../src/obj/for-each-obj/for-each-obj.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,SAAS,EAAa,MAAM,cAAc,CAAC;AACxD,OAAO,EAAC,MAAM,EAAC,MAAM,KAAK,CAAC;AAQ3B,MAAM,UAAU,UAAU,CACxB,GAAM,EACN,OAAsD;IAEtD,KAAK,MAAM,GAAG,IAAI,GAAG,EAAE;
|
|
1
|
+
{"version":3,"file":"for-each-obj.js","sourceRoot":"","sources":["../../../../src/obj/for-each-obj/for-each-obj.ts"],"names":[],"mappings":"AAAA,OAAO,EAAM,SAAS,EAAa,MAAM,cAAc,CAAC;AACxD,OAAO,EAAC,MAAM,EAAC,MAAM,KAAK,CAAC;AAQ3B,MAAM,UAAU,UAAU,CACxB,GAAM,EACN,OAAsD;IAEtD,KAAK,MAAM,GAAG,IAAI,GAAG,EAAE,CAAC;QACtB,IAAI,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAsB,GAAG,EAAE,GAAG,CAAC,KAAK,SAAS,EAAE,CAAC;YACtF,OAAO;QACT,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function hasOwn(obj, property) {
|
|
2
|
-
return Object.
|
|
3
|
-
}
|
|
1
|
+
export function hasOwn(obj, property) {
|
|
2
|
+
return Object.hasOwn(obj, property);
|
|
3
|
+
}
|
|
4
4
|
//# sourceMappingURL=has-own.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"has-own.js","sourceRoot":"","sources":["../../../../src/obj/has-own/has-own.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,MAAM,CAAC,GAAQ,EAAE,QAAmB;
|
|
1
|
+
{"version":3,"file":"has-own.js","sourceRoot":"","sources":["../../../../src/obj/has-own/has-own.ts"],"names":[],"mappings":"AAQA,MAAM,UAAU,MAAM,CAAC,GAAQ,EAAE,QAAmB;IAClD,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,QAA2B,CAAC,CAAC;AACzD,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { isDefined } from '../../common';
|
|
2
|
-
import { hasOwn } from '../';
|
|
3
|
-
export function include(obj, ...fields) {
|
|
4
|
-
const result = {};
|
|
5
|
-
fields.forEach(key => {
|
|
6
|
-
if (hasOwn(obj, key) && isDefined(obj[key])) {
|
|
7
|
-
result[key] = obj[key];
|
|
8
|
-
}
|
|
9
|
-
});
|
|
10
|
-
return result;
|
|
11
|
-
}
|
|
1
|
+
import { isDefined } from '../../common';
|
|
2
|
+
import { hasOwn } from '../';
|
|
3
|
+
export function include(obj, ...fields) {
|
|
4
|
+
const result = {};
|
|
5
|
+
fields.forEach(key => {
|
|
6
|
+
if (hasOwn(obj, key) && isDefined(obj[key])) {
|
|
7
|
+
result[key] = obj[key];
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
return result;
|
|
11
|
+
}
|
|
12
12
|
//# sourceMappingURL=include.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"include.js","sourceRoot":"","sources":["../../../../src/obj/include/include.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAM,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAC,MAAM,EAAC,MAAM,KAAK,CAAC;AAO3B,MAAM,UAAU,OAAO,CAAmC,GAAM,EAAE,GAAG,MAAW;IAC9E,MAAM,MAAM,GAAe,EAAE,CAAC;IAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACnB,IAAI,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"include.js","sourceRoot":"","sources":["../../../../src/obj/include/include.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAM,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAC,MAAM,EAAC,MAAM,KAAK,CAAC;AAO3B,MAAM,UAAU,OAAO,CAAmC,GAAM,EAAE,GAAG,MAAW;IAC9E,MAAM,MAAM,GAAe,EAAE,CAAC;IAC9B,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;QACnB,IAAI,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;YAC5C,MAAM,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;QACzB,CAAC;IACH,CAAC,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/dist/esm/obj/index.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { hasOwn } from './has-own/has-own';
|
|
2
|
-
export { forEachObj } from './for-each-obj/for-each-obj';
|
|
3
|
-
export { keys } from './keys/keys';
|
|
4
|
-
export { values } from './values/values';
|
|
5
|
-
export { include } from './include/include';
|
|
6
|
-
export { exclude } from './exclude/exclude';
|
|
7
|
-
export { constant } from './constant/constant';
|
|
8
|
-
export { deepConstant } from './deep-constant/deep-constant';
|
|
9
|
-
export { mapObj } from './map-obj/map-obj';
|
|
10
|
-
export { mapObjToArr } from './map-obj-to-arr/map-obj-to-arr';
|
|
11
|
-
export { diffObj } from './diff-obj/diff-obj';
|
|
12
|
-
export { extend, extendAll } from './extend/extend';
|
|
1
|
+
export { hasOwn } from './has-own/has-own';
|
|
2
|
+
export { forEachObj } from './for-each-obj/for-each-obj';
|
|
3
|
+
export { keys } from './keys/keys';
|
|
4
|
+
export { values } from './values/values';
|
|
5
|
+
export { include } from './include/include';
|
|
6
|
+
export { exclude } from './exclude/exclude';
|
|
7
|
+
export { constant } from './constant/constant';
|
|
8
|
+
export { deepConstant } from './deep-constant/deep-constant';
|
|
9
|
+
export { mapObj } from './map-obj/map-obj';
|
|
10
|
+
export { mapObjToArr } from './map-obj-to-arr/map-obj-to-arr';
|
|
11
|
+
export { diffObj } from './diff-obj/diff-obj';
|
|
12
|
+
export { extend, extendAll } from './extend/extend';
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function keys(obj) {
|
|
2
|
-
return Object.keys(obj);
|
|
3
|
-
}
|
|
1
|
+
export function keys(obj) {
|
|
2
|
+
return Object.keys(obj);
|
|
3
|
+
}
|
|
4
4
|
//# sourceMappingURL=keys.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { forEachObj } from '../';
|
|
2
|
-
export function mapObj(obj, handler) {
|
|
3
|
-
const result = {};
|
|
4
|
-
forEachObj(obj, (value, key) => result[key] = handler(value, key, obj));
|
|
5
|
-
return result;
|
|
6
|
-
}
|
|
1
|
+
import { forEachObj } from '../';
|
|
2
|
+
export function mapObj(obj, handler) {
|
|
3
|
+
const result = {};
|
|
4
|
+
forEachObj(obj, (value, key) => result[key] = handler(value, key, obj));
|
|
5
|
+
return result;
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=map-obj.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { forEachObj } from '../';
|
|
2
|
-
export function mapObjToArr(obj, handler) {
|
|
3
|
-
const result = [];
|
|
4
|
-
forEachObj(obj, (value, key) => result.push(handler(value, key, obj)));
|
|
5
|
-
return result;
|
|
6
|
-
}
|
|
1
|
+
import { forEachObj } from '../';
|
|
2
|
+
export function mapObjToArr(obj, handler) {
|
|
3
|
+
const result = [];
|
|
4
|
+
forEachObj(obj, (value, key) => result.push(handler(value, key, obj)));
|
|
5
|
+
return result;
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=map-obj-to-arr.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { forEachObj } from '../';
|
|
2
|
-
export function values(obj) {
|
|
3
|
-
const result = [];
|
|
4
|
-
forEachObj(obj, value => result.push(value));
|
|
5
|
-
return result;
|
|
6
|
-
}
|
|
1
|
+
import { forEachObj } from '../';
|
|
2
|
+
export function values(obj) {
|
|
3
|
+
const result = [];
|
|
4
|
+
forEachObj(obj, value => result.push(value));
|
|
5
|
+
return result;
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=values.js.map
|
package/dist/esm/str/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { withCapital } from './with-capital/with-capital';
|
|
2
|
-
export { toCamelCase } from './to-camel-case/to-camel-case';
|
|
3
|
-
export { toHash } from './to-hash/to-hash';
|
|
1
|
+
export { withCapital } from './with-capital/with-capital';
|
|
2
|
+
export { toCamelCase } from './to-camel-case/to-camel-case';
|
|
3
|
+
export { toHash } from './to-hash/to-hash';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
const REGEX_SPECIAL_CHARS = /[.*+?^${}()|[\]\\]/g;
|
|
2
|
+
function escapeRegExp(str) {
|
|
3
|
+
return str.replace(REGEX_SPECIAL_CHARS, '\\$&');
|
|
4
|
+
}
|
|
5
|
+
export function toCamelCase(str, separators = ['-', '_', ' ']) {
|
|
6
|
+
return separators.reduce((acc, separator) => {
|
|
7
|
+
const reg = new RegExp(escapeRegExp(separator) + '([\\da-z])', 'gi');
|
|
8
|
+
return acc.replace(reg, (all, letter) => {
|
|
9
|
+
return letter.toUpperCase();
|
|
10
|
+
});
|
|
11
|
+
}, str);
|
|
12
|
+
}
|
|
9
13
|
//# sourceMappingURL=to-camel-case.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-camel-case.js","sourceRoot":"","sources":["../../../../src/str/to-camel-case/to-camel-case.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"to-camel-case.js","sourceRoot":"","sources":["../../../../src/str/to-camel-case/to-camel-case.ts"],"names":[],"mappings":"AAAA,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAElD,SAAS,YAAY,CAAC,GAAW;IAC/B,OAAO,GAAG,CAAC,OAAO,CAAC,mBAAmB,EAAE,MAAM,CAAC,CAAC;AAClD,CAAC;AAWD,MAAM,UAAU,WAAW,CAAC,GAAW,EAAE,aAAuB,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC7E,OAAO,UAAU,CAAC,MAAM,CAAC,CAAC,GAAW,EAAE,SAAiB,EAAE,EAAE;QAC1D,MAAM,GAAG,GAAG,IAAI,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,GAAG,YAAY,EAAE,IAAI,CAAC,CAAC;QACrE,OAAO,GAAG,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAW,EAAE,MAAc,EAAE,EAAE;YACtD,OAAO,MAAM,CAAC,WAAW,EAAE,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC,EAAE,GAAG,CAAC,CAAC;AACV,CAAC"}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
export function toHash(str) {
|
|
2
|
-
if (str) {
|
|
3
|
-
let hash = 0;
|
|
4
|
-
for (let i = 0; i < str.length; i++) {
|
|
5
|
-
const char = str.charCodeAt(i);
|
|
6
|
-
hash = ((hash << 5) - hash) + char;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
1
|
+
export function toHash(str) {
|
|
2
|
+
if (str) {
|
|
3
|
+
let hash = 0;
|
|
4
|
+
for (let i = 0; i < str.length; i++) {
|
|
5
|
+
const char = str.charCodeAt(i);
|
|
6
|
+
hash = (((hash << 5) - hash) + char) | 0;
|
|
7
|
+
}
|
|
8
|
+
return hash < 0 ? 'hn' + Math.abs(hash) : 'hp' + hash;
|
|
9
|
+
}
|
|
10
|
+
else {
|
|
11
|
+
return '';
|
|
12
|
+
}
|
|
13
|
+
}
|
|
15
14
|
//# sourceMappingURL=to-hash.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-hash.js","sourceRoot":"","sources":["../../../../src/str/to-hash/to-hash.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,MAAM,CAAC,GAAW;IAChC,IAAI,GAAG,EAAE;
|
|
1
|
+
{"version":3,"file":"to-hash.js","sourceRoot":"","sources":["../../../../src/str/to-hash/to-hash.ts"],"names":[],"mappings":"AAMA,MAAM,UAAU,MAAM,CAAC,GAAW;IAChC,IAAI,GAAG,EAAE,CAAC;QACR,IAAI,IAAI,GAAG,CAAC,CAAC;QAEb,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACpC,MAAM,IAAI,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;YAC/B,IAAI,GAAG,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;QAC3C,CAAC;QAED,OAAO,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,IAAI,CAAC;IACxD,CAAC;SAAM,CAAC;QACN,OAAO,EAAE,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function withCapital(str) {
|
|
2
|
-
return str.charAt(0).toUpperCase() + str.substring(1);
|
|
3
|
-
}
|
|
1
|
+
export function withCapital(str) {
|
|
2
|
+
return str.charAt(0).toUpperCase() + str.substring(1);
|
|
3
|
+
}
|
|
4
4
|
//# sourceMappingURL=with-capital.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns the array item at index, or undefined if there is no index.
|
|
3
|
-
* For negative indexes, returns items from the end
|
|
4
|
-
* @param arr - any array
|
|
5
|
-
* @param index - item index
|
|
6
|
-
*/
|
|
7
|
-
export declare function at<T>(arr: T[], index: number): T | undefined;
|
|
1
|
+
/**
|
|
2
|
+
* Returns the array item at index, or undefined if there is no index.
|
|
3
|
+
* For negative indexes, returns items from the end
|
|
4
|
+
* @param arr - any array
|
|
5
|
+
* @param index - item index
|
|
6
|
+
*/
|
|
7
|
+
export declare function at<T>(arr: T[], index: number): T | undefined;
|
|
8
8
|
//# sourceMappingURL=at.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"at.d.ts","sourceRoot":"","sources":["../../../../src/arr/at/at.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"at.d.ts","sourceRoot":"","sources":["../../../../src/arr/at/at.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAE5D"}
|
|
@@ -1,118 +1,118 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents a condition that is true if the function returns true
|
|
3
|
-
* Used for the cnd function
|
|
4
|
-
*/
|
|
5
|
-
export
|
|
6
|
-
/**
|
|
7
|
-
* Represents a condition that is true if the value is the same as the condition
|
|
8
|
-
* Used for the cnd function
|
|
9
|
-
*/
|
|
10
|
-
export
|
|
11
|
-
is: any;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Represents a condition that is true if the value is the same for at least one part of the condition
|
|
15
|
-
* Used for the cnd function
|
|
16
|
-
*/
|
|
17
|
-
export
|
|
18
|
-
or: any[];
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Represents a condition that is true if the value is not the same for each part of the condition
|
|
22
|
-
* Used for the cnd function
|
|
23
|
-
*/
|
|
24
|
-
export
|
|
25
|
-
not: any[];
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Represents a condition that is true if the value is equal to the condition
|
|
29
|
-
* Used for the cnd function
|
|
30
|
-
*/
|
|
31
|
-
export
|
|
32
|
-
equal: any;
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* Represents a condition that is true if the value is equal to at least one part of the condition
|
|
36
|
-
* Used for the cnd function
|
|
37
|
-
*/
|
|
38
|
-
export
|
|
39
|
-
orEqual: any[];
|
|
40
|
-
};
|
|
41
|
-
/**
|
|
42
|
-
* Represents a condition that is true if the value is not equal to each part of the condition
|
|
43
|
-
* Used for the cnd function
|
|
44
|
-
*/
|
|
45
|
-
export
|
|
46
|
-
notEqual: any[];
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* Represents a group of all object condition types
|
|
50
|
-
* Used for the cnd function
|
|
51
|
-
*/
|
|
52
|
-
export
|
|
53
|
-
/**
|
|
54
|
-
* Represents a condition that is true if the value of each field matches each field condition
|
|
55
|
-
* Used for the cnd function
|
|
56
|
-
*/
|
|
57
|
-
export
|
|
58
|
-
[field: string]: MatchConditionObj | RegExp;
|
|
59
|
-
};
|
|
60
|
-
/**
|
|
61
|
-
* Represents all condition types for the cnd function
|
|
62
|
-
*/
|
|
63
|
-
export
|
|
64
|
-
/**
|
|
65
|
-
* Returns a function that checks if a value matches the conditions
|
|
66
|
-
* @example
|
|
67
|
-
* import {cnd} from '@bitfiber/utils/arr';
|
|
68
|
-
*
|
|
69
|
-
* const obj1 = {name: 'Alex'};
|
|
70
|
-
* const obj2 = {name: 'Mary'};
|
|
71
|
-
* const obj3 = {name: 'Jack'};
|
|
72
|
-
* const arr = [obj1, obj2, obj3];
|
|
73
|
-
* const strArr = ['Alex', 'Mary', 'Jack'];
|
|
74
|
-
*
|
|
75
|
-
* // Handler for comparison
|
|
76
|
-
* arr.filter(cnd(obj => obj.name === 'Alex')); // [{name: 'Alex'}]
|
|
77
|
-
*
|
|
78
|
-
* // Strict value comparison
|
|
79
|
-
* arr.filter(cnd({is: obj1})); // [{name: 'Alex'}]
|
|
80
|
-
* arr.filter(cnd({is: {name: 'Alex'}})); // []
|
|
81
|
-
* arr.filter(cnd({or: [obj1, obj2]})); // [{name: 'Alex'}, {name: 'Mary'}]
|
|
82
|
-
* arr.filter(cnd({or: [{name: 'Alex'}, obj2]})); // [{name: 'Mary'}]
|
|
83
|
-
* arr.filter(cnd({not: [obj1, obj2]})); // [{name: 'Jack'}]
|
|
84
|
-
* arr.filter(cnd({not: [{name: 'Alex'}, obj2]})); // [{name: 'Alex'}, {name: 'Jack'}]
|
|
85
|
-
*
|
|
86
|
-
* // Value equivalence comparison
|
|
87
|
-
* arr.filter(cnd({equal: obj1})); // [{name: 'Alex'}]
|
|
88
|
-
* arr.filter(cnd({equal: {name: 'Alex'}})); // [{name: 'Alex'}]
|
|
89
|
-
* arr.filter(cnd({orEqual: [obj1, obj2]})); // [{name: 'Alex'}, {name: 'Mary'}]
|
|
90
|
-
* arr.filter(cnd({orEqual: [{name: 'Alex'}, obj2]})); // [{name: 'Alex'}, {name: 'Mary'}]
|
|
91
|
-
* arr.filter(cnd({notEqual: [obj1, obj2]})); // [{name: 'Jack'}]
|
|
92
|
-
* arr.filter(cnd({notEqual: [{name: 'Alex'}, obj2]})); // [{name: 'Jack'}]
|
|
93
|
-
*
|
|
94
|
-
* // String value RegExp comparison
|
|
95
|
-
* strArr.filter(cnd({equal: /^Alex$/})); // ['Alex']
|
|
96
|
-
* strArr.filter(cnd({orEqual: [/^Alex$/, /^Mary$/]})); // ['Alex', 'Mary']
|
|
97
|
-
* strArr.filter(cnd({notEqual: [/^Alex$/, /^Mary$/]})); // ['Jack']
|
|
98
|
-
*
|
|
99
|
-
* // Strict comparison of field value in objects
|
|
100
|
-
* arr.filter(cnd({name: {is: 'Alex'}})); // [{name: 'Alex'}]
|
|
101
|
-
* arr.filter(cnd({name: {or: ['Alex', 'Mary']}})); // [{name: 'Alex'}, {name: 'Mary'}]
|
|
102
|
-
* arr.filter(cnd({name: {not: ['Alex', 'Mary']}})); // [{name: 'Jack'}]
|
|
103
|
-
*
|
|
104
|
-
* // Comparison of field value equivalence in objects
|
|
105
|
-
* arr.filter(cnd({name: {equal: 'Alex'}})); // [{name: 'Alex'}]
|
|
106
|
-
* arr.filter(cnd({name: {orEqual: ['Alex', 'Mary']}})); // [{name: 'Alex'}, {name: 'Mary'}]
|
|
107
|
-
* arr.filter(cnd({name: {notEqual: ['Alex', 'Mary']}})); // [{name: 'Jack'}]
|
|
108
|
-
*
|
|
109
|
-
* // Comparing string fields in objects using RegExp
|
|
110
|
-
* arr.filter(cnd({name: /^Alex$/})); // [{name: 'Alex'}]
|
|
111
|
-
* arr.filter(cnd({name: {equal: /^Alex$/}})); // [{name: 'Alex'}]
|
|
112
|
-
* arr.filter(cnd({name: {orEqual: [/^Alex$/, /^Mary$/]}})); // [{name: 'Alex'}, {name: 'Mary'}]
|
|
113
|
-
* arr.filter(cnd({name: {notEqual: [/^Alex$/, /^Mary$/]}})); // [{name: 'Jack'}]
|
|
114
|
-
*
|
|
115
|
-
* @param conditions
|
|
116
|
-
*/
|
|
117
|
-
export declare function cnd(conditions: MatchConditions): MatchConditionFn;
|
|
1
|
+
/**
|
|
2
|
+
* Represents a condition that is true if the function returns true
|
|
3
|
+
* Used for the cnd function
|
|
4
|
+
*/
|
|
5
|
+
export type MatchConditionFn = (value: any) => boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Represents a condition that is true if the value is the same as the condition
|
|
8
|
+
* Used for the cnd function
|
|
9
|
+
*/
|
|
10
|
+
export type MatchConditionIs = {
|
|
11
|
+
is: any;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Represents a condition that is true if the value is the same for at least one part of the condition
|
|
15
|
+
* Used for the cnd function
|
|
16
|
+
*/
|
|
17
|
+
export type MatchConditionOr = {
|
|
18
|
+
or: any[];
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Represents a condition that is true if the value is not the same for each part of the condition
|
|
22
|
+
* Used for the cnd function
|
|
23
|
+
*/
|
|
24
|
+
export type MatchConditionNot = {
|
|
25
|
+
not: any[];
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Represents a condition that is true if the value is equal to the condition
|
|
29
|
+
* Used for the cnd function
|
|
30
|
+
*/
|
|
31
|
+
export type MatchConditionEqual = {
|
|
32
|
+
equal: any;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Represents a condition that is true if the value is equal to at least one part of the condition
|
|
36
|
+
* Used for the cnd function
|
|
37
|
+
*/
|
|
38
|
+
export type MatchConditionOrEqual = {
|
|
39
|
+
orEqual: any[];
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Represents a condition that is true if the value is not equal to each part of the condition
|
|
43
|
+
* Used for the cnd function
|
|
44
|
+
*/
|
|
45
|
+
export type MatchConditionNotEqual = {
|
|
46
|
+
notEqual: any[];
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Represents a group of all object condition types
|
|
50
|
+
* Used for the cnd function
|
|
51
|
+
*/
|
|
52
|
+
export type MatchConditionObj = MatchConditionIs | MatchConditionOr | MatchConditionNot | MatchConditionEqual | MatchConditionOrEqual | MatchConditionNotEqual;
|
|
53
|
+
/**
|
|
54
|
+
* Represents a condition that is true if the value of each field matches each field condition
|
|
55
|
+
* Used for the cnd function
|
|
56
|
+
*/
|
|
57
|
+
export type MatchConditionsByFields = {
|
|
58
|
+
[field: string]: MatchConditionObj | RegExp;
|
|
59
|
+
};
|
|
60
|
+
/**
|
|
61
|
+
* Represents all condition types for the cnd function
|
|
62
|
+
*/
|
|
63
|
+
export type MatchConditions = MatchConditionFn | MatchConditionObj | MatchConditionsByFields;
|
|
64
|
+
/**
|
|
65
|
+
* Returns a function that checks if a value matches the conditions
|
|
66
|
+
* @example
|
|
67
|
+
* import {cnd} from '@bitfiber/utils/arr';
|
|
68
|
+
*
|
|
69
|
+
* const obj1 = {name: 'Alex'};
|
|
70
|
+
* const obj2 = {name: 'Mary'};
|
|
71
|
+
* const obj3 = {name: 'Jack'};
|
|
72
|
+
* const arr = [obj1, obj2, obj3];
|
|
73
|
+
* const strArr = ['Alex', 'Mary', 'Jack'];
|
|
74
|
+
*
|
|
75
|
+
* // Handler for comparison
|
|
76
|
+
* arr.filter(cnd(obj => obj.name === 'Alex')); // [{name: 'Alex'}]
|
|
77
|
+
*
|
|
78
|
+
* // Strict value comparison
|
|
79
|
+
* arr.filter(cnd({is: obj1})); // [{name: 'Alex'}]
|
|
80
|
+
* arr.filter(cnd({is: {name: 'Alex'}})); // []
|
|
81
|
+
* arr.filter(cnd({or: [obj1, obj2]})); // [{name: 'Alex'}, {name: 'Mary'}]
|
|
82
|
+
* arr.filter(cnd({or: [{name: 'Alex'}, obj2]})); // [{name: 'Mary'}]
|
|
83
|
+
* arr.filter(cnd({not: [obj1, obj2]})); // [{name: 'Jack'}]
|
|
84
|
+
* arr.filter(cnd({not: [{name: 'Alex'}, obj2]})); // [{name: 'Alex'}, {name: 'Jack'}]
|
|
85
|
+
*
|
|
86
|
+
* // Value equivalence comparison
|
|
87
|
+
* arr.filter(cnd({equal: obj1})); // [{name: 'Alex'}]
|
|
88
|
+
* arr.filter(cnd({equal: {name: 'Alex'}})); // [{name: 'Alex'}]
|
|
89
|
+
* arr.filter(cnd({orEqual: [obj1, obj2]})); // [{name: 'Alex'}, {name: 'Mary'}]
|
|
90
|
+
* arr.filter(cnd({orEqual: [{name: 'Alex'}, obj2]})); // [{name: 'Alex'}, {name: 'Mary'}]
|
|
91
|
+
* arr.filter(cnd({notEqual: [obj1, obj2]})); // [{name: 'Jack'}]
|
|
92
|
+
* arr.filter(cnd({notEqual: [{name: 'Alex'}, obj2]})); // [{name: 'Jack'}]
|
|
93
|
+
*
|
|
94
|
+
* // String value RegExp comparison
|
|
95
|
+
* strArr.filter(cnd({equal: /^Alex$/})); // ['Alex']
|
|
96
|
+
* strArr.filter(cnd({orEqual: [/^Alex$/, /^Mary$/]})); // ['Alex', 'Mary']
|
|
97
|
+
* strArr.filter(cnd({notEqual: [/^Alex$/, /^Mary$/]})); // ['Jack']
|
|
98
|
+
*
|
|
99
|
+
* // Strict comparison of field value in objects
|
|
100
|
+
* arr.filter(cnd({name: {is: 'Alex'}})); // [{name: 'Alex'}]
|
|
101
|
+
* arr.filter(cnd({name: {or: ['Alex', 'Mary']}})); // [{name: 'Alex'}, {name: 'Mary'}]
|
|
102
|
+
* arr.filter(cnd({name: {not: ['Alex', 'Mary']}})); // [{name: 'Jack'}]
|
|
103
|
+
*
|
|
104
|
+
* // Comparison of field value equivalence in objects
|
|
105
|
+
* arr.filter(cnd({name: {equal: 'Alex'}})); // [{name: 'Alex'}]
|
|
106
|
+
* arr.filter(cnd({name: {orEqual: ['Alex', 'Mary']}})); // [{name: 'Alex'}, {name: 'Mary'}]
|
|
107
|
+
* arr.filter(cnd({name: {notEqual: ['Alex', 'Mary']}})); // [{name: 'Jack'}]
|
|
108
|
+
*
|
|
109
|
+
* // Comparing string fields in objects using RegExp
|
|
110
|
+
* arr.filter(cnd({name: /^Alex$/})); // [{name: 'Alex'}]
|
|
111
|
+
* arr.filter(cnd({name: {equal: /^Alex$/}})); // [{name: 'Alex'}]
|
|
112
|
+
* arr.filter(cnd({name: {orEqual: [/^Alex$/, /^Mary$/]}})); // [{name: 'Alex'}, {name: 'Mary'}]
|
|
113
|
+
* arr.filter(cnd({name: {notEqual: [/^Alex$/, /^Mary$/]}})); // [{name: 'Jack'}]
|
|
114
|
+
*
|
|
115
|
+
* @param conditions
|
|
116
|
+
*/
|
|
117
|
+
export declare function cnd(conditions: MatchConditions): MatchConditionFn;
|
|
118
118
|
//# sourceMappingURL=cnd.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cnd.d.ts","sourceRoot":"","sources":["../../../../src/arr/cnd/cnd.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"cnd.d.ts","sourceRoot":"","sources":["../../../../src/arr/cnd/cnd.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,GAAG,KAAK,OAAO,CAAC;AAEvD;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAAC,EAAE,EAAE,GAAG,CAAA;CAAC,CAAC;AAEzC;;;GAGG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAAC,EAAE,EAAE,GAAG,EAAE,CAAA;CAAC,CAAC;AAE3C;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAAC,GAAG,EAAE,GAAG,EAAE,CAAA;CAAC,CAAC;AAE7C;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAAC,KAAK,EAAE,GAAG,CAAA;CAAC,CAAC;AAE/C;;;GAGG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAAC,OAAO,EAAE,GAAG,EAAE,CAAA;CAAC,CAAC;AAErD;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAAG;IAAC,QAAQ,EAAE,GAAG,EAAE,CAAA;CAAC,CAAC;AAEvD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG,gBAAgB,GAAG,iBAAiB,GACnF,mBAAmB,GAAG,qBAAqB,GAAG,sBAAsB,CAAC;AAEzE;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC,CAAC,KAAK,EAAE,MAAM,GAAG,iBAAiB,GAAG,MAAM,CAAC;CAC7C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,iBAAiB,GAAG,uBAAuB,CAAC;AAE7F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,wBAAgB,GAAG,CAAC,UAAU,EAAE,eAAe,GAAG,gBAAgB,CAqEjE"}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { NumStr } from '../../common';
|
|
2
|
-
/**
|
|
3
|
-
* Represents response of the diffArr function
|
|
4
|
-
*/
|
|
5
|
-
export interface ArrDiff<T> {
|
|
6
|
-
/**
|
|
7
|
-
* Contains items that are only in array 1
|
|
8
|
-
*/
|
|
9
|
-
only1: T[];
|
|
10
|
-
/**
|
|
11
|
-
* Contains items that are only in array 2
|
|
12
|
-
*/
|
|
13
|
-
only2: T[];
|
|
14
|
-
/**
|
|
15
|
-
* Contains items that are in both arrays
|
|
16
|
-
*/
|
|
17
|
-
equal: T[];
|
|
18
|
-
/**
|
|
19
|
-
* True if only1 and only2 are empty, otherwise false
|
|
20
|
-
*/
|
|
21
|
-
isEqual: boolean;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Returns the difference between two arrays
|
|
25
|
-
* Strict comparison of array items is applied
|
|
26
|
-
* The order doesn't matter
|
|
27
|
-
* @param arr1 - array 1
|
|
28
|
-
* @param arr2 - array 2
|
|
29
|
-
*/
|
|
30
|
-
export declare function diffArr<T extends NumStr>(arr1: T[], arr2: T[]): ArrDiff<T>;
|
|
1
|
+
import { NumStr } from '../../common';
|
|
2
|
+
/**
|
|
3
|
+
* Represents response of the diffArr function
|
|
4
|
+
*/
|
|
5
|
+
export interface ArrDiff<T> {
|
|
6
|
+
/**
|
|
7
|
+
* Contains items that are only in array 1
|
|
8
|
+
*/
|
|
9
|
+
only1: T[];
|
|
10
|
+
/**
|
|
11
|
+
* Contains items that are only in array 2
|
|
12
|
+
*/
|
|
13
|
+
only2: T[];
|
|
14
|
+
/**
|
|
15
|
+
* Contains items that are in both arrays
|
|
16
|
+
*/
|
|
17
|
+
equal: T[];
|
|
18
|
+
/**
|
|
19
|
+
* True if only1 and only2 are empty, otherwise false
|
|
20
|
+
*/
|
|
21
|
+
isEqual: boolean;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns the difference between two arrays
|
|
25
|
+
* Strict comparison of array items is applied
|
|
26
|
+
* The order doesn't matter, duplicate values are ignored
|
|
27
|
+
* @param arr1 - array 1
|
|
28
|
+
* @param arr2 - array 2
|
|
29
|
+
*/
|
|
30
|
+
export declare function diffArr<T extends NumStr>(arr1: T[], arr2: T[]): ArrDiff<T>;
|
|
31
31
|
//# sourceMappingURL=diff-arr.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fills a new array with items that will be returned by the handler,
|
|
3
|
-
* which will be called a certain number of times
|
|
4
|
-
* @param quantity - number of array items
|
|
5
|
-
* @param handler - a function that should return a new array item
|
|
6
|
-
* @param offset - offset for the index, which is passed to the handler
|
|
7
|
-
*/
|
|
8
|
-
export declare function fill<T>(quantity: number, handler: (offsetIndex: number, index: number) => T, offset?: number): T[];
|
|
1
|
+
/**
|
|
2
|
+
* Fills a new array with items that will be returned by the handler,
|
|
3
|
+
* which will be called a certain number of times
|
|
4
|
+
* @param quantity - number of array items
|
|
5
|
+
* @param handler - a function that should return a new array item
|
|
6
|
+
* @param offset - offset for the index, which is passed to the handler
|
|
7
|
+
*/
|
|
8
|
+
export declare function fill<T>(quantity: number, handler: (offsetIndex: number, index: number) => T, offset?: number): T[];
|
|
9
9
|
//# sourceMappingURL=fill.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Arr, ValueUnion } from '../../common';
|
|
2
|
-
/**
|
|
3
|
-
* Iterates through all the items of an array and calls a handler for each item
|
|
4
|
-
* If the handler returns INTERRUPT, the loop will be interrupted
|
|
5
|
-
* @param arr - an array or any typed array
|
|
6
|
-
* @param handler - function called for each item
|
|
7
|
-
* @param reverse - iterates in reverse order if true
|
|
8
|
-
*/
|
|
9
|
-
export declare function forEachArr<T extends Arr, V extends ValueUnion<T>>(arr: T, handler: (value: V, index: number, arr: T) => any, reverse?: boolean): void;
|
|
1
|
+
import { Arr, ValueUnion } from '../../common';
|
|
2
|
+
/**
|
|
3
|
+
* Iterates through all the items of an array and calls a handler for each item
|
|
4
|
+
* If the handler returns INTERRUPT, the loop will be interrupted
|
|
5
|
+
* @param arr - an array or any typed array
|
|
6
|
+
* @param handler - function called for each item
|
|
7
|
+
* @param reverse - iterates in reverse order if true
|
|
8
|
+
*/
|
|
9
|
+
export declare function forEachArr<T extends Arr, V extends ValueUnion<T>>(arr: T, handler: (value: V, index: number, arr: T) => any, reverse?: boolean): void;
|
|
10
10
|
//# sourceMappingURL=for-each-arr.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Obj, Index } from '../../common';
|
|
2
|
-
/**
|
|
3
|
-
* Returns an object indexed by the values from a specific field of each item
|
|
4
|
-
* or from a function that is executed on each item
|
|
5
|
-
* @param arr - array of objects
|
|
6
|
-
* @param fieldOrFn - the name of the field from which the index value should be taken,
|
|
7
|
-
* or the function that should return the index value
|
|
8
|
-
*/
|
|
9
|
-
export declare function indexBy<T extends Obj>(arr: T[], fieldOrFn: string | ((item: T) => string)): Index<T>;
|
|
1
|
+
import { Obj, Index } from '../../common';
|
|
2
|
+
/**
|
|
3
|
+
* Returns an object indexed by the values from a specific field of each item
|
|
4
|
+
* or from a function that is executed on each item
|
|
5
|
+
* @param arr - array of objects
|
|
6
|
+
* @param fieldOrFn - the name of the field from which the index value should be taken,
|
|
7
|
+
* or the function that should return the index value
|
|
8
|
+
*/
|
|
9
|
+
export declare function indexBy<T extends Obj>(arr: T[], fieldOrFn: string | ((item: T) => string)): Index<T>;
|
|
10
10
|
//# sourceMappingURL=index-by.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { at } from './at/at';
|
|
2
|
-
export { within } from './within/within';
|
|
3
|
-
export { pluck } from './pluck/pluck';
|
|
4
|
-
export { indexBy } from './index-by/index-by';
|
|
5
|
-
export { fill } from './fill/fill';
|
|
6
|
-
export { diffArr, ArrDiff } from './diff-arr/diff-arr';
|
|
7
|
-
export { forEachArr } from './for-each-arr/for-each-arr';
|
|
8
|
-
export { cnd, MatchConditionFn, MatchConditionIs, MatchConditionOr, MatchConditionNot, MatchConditionEqual, MatchConditionOrEqual, MatchConditionNotEqual, MatchConditionObj, MatchConditionsByFields, MatchConditions, } from './cnd/cnd';
|
|
1
|
+
export { at } from './at/at';
|
|
2
|
+
export { within } from './within/within';
|
|
3
|
+
export { pluck } from './pluck/pluck';
|
|
4
|
+
export { indexBy } from './index-by/index-by';
|
|
5
|
+
export { fill } from './fill/fill';
|
|
6
|
+
export { diffArr, ArrDiff } from './diff-arr/diff-arr';
|
|
7
|
+
export { forEachArr } from './for-each-arr/for-each-arr';
|
|
8
|
+
export { cnd, MatchConditionFn, MatchConditionIs, MatchConditionOr, MatchConditionNot, MatchConditionEqual, MatchConditionOrEqual, MatchConditionNotEqual, MatchConditionObj, MatchConditionsByFields, MatchConditions, } from './cnd/cnd';
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|