@ezez/utils 2.1.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/omit.d.ts +1 -1
- package/dist/omit.d.ts.map +1 -1
- package/dist/omit.js.map +1 -1
- package/dist/replace.d.ts.map +1 -1
- package/dist/replace.js.map +1 -1
- package/dist/replaceDeep.d.ts +5 -1
- package/dist/replaceDeep.d.ts.map +1 -1
- package/dist/replaceDeep.js +3 -20
- package/dist/replaceDeep.js.map +1 -1
- package/dist/replaceDeepByFn.d.ts +7 -0
- package/dist/replaceDeepByFn.d.ts.map +1 -0
- package/dist/replaceDeepByFn.js +47 -0
- package/dist/replaceDeepByFn.js.map +1 -0
- package/dist/safe.d.ts.map +1 -1
- package/dist/safe.js.map +1 -1
- package/dist/sample.d.ts +3 -0
- package/dist/sample.d.ts.map +1 -0
- package/dist/sample.js +8 -0
- package/dist/sample.js.map +1 -0
- package/dist/samples.d.ts +3 -0
- package/dist/samples.d.ts.map +1 -0
- package/dist/samples.js +28 -0
- package/dist/samples.js.map +1 -0
- package/dist/serialize.d.ts.map +1 -1
- package/dist/serialize.js +56 -18
- package/dist/serialize.js.map +1 -1
- package/dist/shuffle.d.ts +3 -0
- package/dist/shuffle.d.ts.map +1 -0
- package/dist/shuffle.js +9 -0
- package/dist/shuffle.js.map +1 -0
- package/dist/toggle.d.ts +3 -0
- package/dist/toggle.d.ts.map +1 -0
- package/dist/toggle.js +15 -0
- package/dist/toggle.js.map +1 -0
- package/dist/trim.d.ts +3 -0
- package/dist/trim.d.ts.map +1 -0
- package/dist/trim.js +10 -0
- package/dist/trim.js.map +1 -0
- package/dist/trimEnd.d.ts +3 -0
- package/dist/trimEnd.d.ts.map +1 -0
- package/dist/trimEnd.js +12 -0
- package/dist/trimEnd.js.map +1 -0
- package/dist/trimStart.d.ts +3 -0
- package/dist/trimStart.d.ts.map +1 -0
- package/dist/trimStart.js +12 -0
- package/dist/trimStart.js.map +1 -0
- package/dist/utils/utils.d.ts +6 -0
- package/dist/utils/utils.d.ts.map +1 -0
- package/dist/utils/utils.js +10 -0
- package/dist/utils/utils.js.map +1 -0
- package/dist/waitFor.d.ts +7 -1
- package/dist/waitFor.d.ts.map +1 -1
- package/dist/waitFor.js +35 -10
- package/dist/waitFor.js.map +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/functions/cap.html +12 -5
- package/docs/functions/capitalize.html +12 -5
- package/docs/functions/coalesce.html +12 -5
- package/docs/functions/compareArrays.html +12 -5
- package/docs/functions/compareProps.html +12 -5
- package/docs/functions/deserialize.html +12 -5
- package/docs/functions/ensureArray.html +12 -5
- package/docs/functions/ensureDate.html +12 -5
- package/docs/functions/ensureError.html +12 -5
- package/docs/functions/ensurePrefix.html +12 -5
- package/docs/functions/ensureSuffix.html +12 -5
- package/docs/functions/ensureTimestamp.html +12 -5
- package/docs/functions/escapeRegExp.html +12 -5
- package/docs/functions/formatDate.html +12 -5
- package/docs/functions/get.html +12 -5
- package/docs/functions/getMultiple.html +12 -5
- package/docs/functions/insertSeparator.html +12 -5
- package/docs/functions/isEmpty.html +12 -5
- package/docs/functions/isNumericString.html +12 -5
- package/docs/functions/isPlainObject.html +12 -5
- package/docs/functions/last.html +12 -5
- package/docs/functions/later-1.html +12 -5
- package/docs/functions/mapAsync.html +12 -5
- package/docs/functions/mapValues.html +12 -5
- package/docs/functions/match.html +12 -5
- package/docs/functions/merge.html +20 -13
- package/docs/functions/mostFrequent.html +12 -5
- package/docs/functions/noop.html +12 -5
- package/docs/functions/occurrences.html +12 -5
- package/docs/functions/omit.html +18 -7
- package/docs/functions/pick.html +13 -6
- package/docs/functions/pull.html +12 -5
- package/docs/functions/remove.html +12 -5
- package/docs/functions/removeCommonProperties.html +12 -5
- package/docs/functions/replace.html +12 -5
- package/docs/functions/replaceDeep.html +23 -7
- package/docs/functions/rethrow.html +12 -5
- package/docs/functions/round.html +12 -5
- package/docs/functions/safe.html +13 -6
- package/docs/functions/sample.html +149 -0
- package/docs/functions/samples.html +159 -0
- package/docs/functions/scale.html +12 -5
- package/docs/functions/seq.html +12 -5
- package/docs/functions/seqEarlyBreak.html +12 -5
- package/docs/functions/serialize.html +12 -5
- package/docs/functions/set.html +12 -5
- package/docs/functions/setImmutable.html +12 -5
- package/docs/functions/shuffle.html +149 -0
- package/docs/functions/sortBy.html +12 -5
- package/docs/functions/sortProps.html +12 -5
- package/docs/functions/stripPrefix.html +12 -5
- package/docs/functions/stripSuffix.html +12 -5
- package/docs/functions/throttle.html +12 -5
- package/docs/functions/toggle.html +154 -0
- package/docs/functions/trim.html +152 -0
- package/docs/functions/trimEnd.html +152 -0
- package/docs/functions/trimStart.html +152 -0
- package/docs/functions/truthy.html +12 -5
- package/docs/functions/unique.html +12 -5
- package/docs/functions/wait.html +12 -5
- package/docs/functions/waitFor.html +23 -18
- package/docs/functions/waitSync.html +12 -5
- package/docs/index.html +11 -4
- package/docs/interfaces/ComparePropsOptions.html +6 -6
- package/docs/interfaces/GetMultipleSource.html +12 -5
- package/docs/interfaces/GetSource.html +12 -5
- package/docs/interfaces/IsNumericStringOptions.html +9 -9
- package/docs/interfaces/OccurencesOptions.html +6 -6
- package/docs/interfaces/SetImmutableSource.html +12 -5
- package/docs/interfaces/SetSource.html +12 -5
- package/docs/interfaces/ThrottleOptions.html +7 -7
- package/docs/interfaces/ThrottledFunctionExtras.html +7 -7
- package/docs/modules.html +18 -4
- package/docs/pages/CHANGELOG.html +150 -61
- package/docs/pages/Introduction.html +11 -4
- package/docs/types/CustomDeserializers.html +12 -5
- package/docs/types/CustomSerializers.html +12 -5
- package/docs/types/Later.html +12 -5
- package/docs/types/MapValuesFn.html +12 -5
- package/docs/types/MatchCallback.html +12 -5
- package/docs/types/SeqEarlyBreaker.html +12 -5
- package/docs/types/SeqFn.html +12 -5
- package/docs/types/SeqFunctions.html +12 -5
- package/docs/types/SetImmutablePath.html +12 -5
- package/docs/types/ThrottledFunction.html +12 -5
- package/docs/variables/mapValuesUNSET.html +12 -5
- package/docs/variables/mergeUNSET.html +12 -5
- package/esm/index.d.ts +7 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +7 -0
- package/esm/index.js.map +1 -1
- package/esm/omit.d.ts +1 -1
- package/esm/omit.d.ts.map +1 -1
- package/esm/omit.js.map +1 -1
- package/esm/replace.d.ts.map +1 -1
- package/esm/replace.js.map +1 -1
- package/esm/replaceDeep.d.ts +5 -1
- package/esm/replaceDeep.d.ts.map +1 -1
- package/esm/replaceDeep.js +3 -20
- package/esm/replaceDeep.js.map +1 -1
- package/esm/replaceDeepByFn.d.ts +7 -0
- package/esm/replaceDeepByFn.d.ts.map +1 -0
- package/esm/replaceDeepByFn.js +44 -0
- package/esm/replaceDeepByFn.js.map +1 -0
- package/esm/safe.d.ts.map +1 -1
- package/esm/safe.js.map +1 -1
- package/esm/sample.d.ts +3 -0
- package/esm/sample.d.ts.map +1 -0
- package/esm/sample.js +5 -0
- package/esm/sample.js.map +1 -0
- package/esm/samples.d.ts +3 -0
- package/esm/samples.d.ts.map +1 -0
- package/esm/samples.js +25 -0
- package/esm/samples.js.map +1 -0
- package/esm/serialize.d.ts.map +1 -1
- package/esm/serialize.js +56 -18
- package/esm/serialize.js.map +1 -1
- package/esm/shuffle.d.ts +3 -0
- package/esm/shuffle.d.ts.map +1 -0
- package/esm/shuffle.js +6 -0
- package/esm/shuffle.js.map +1 -0
- package/esm/toggle.d.ts +3 -0
- package/esm/toggle.d.ts.map +1 -0
- package/esm/toggle.js +12 -0
- package/esm/toggle.js.map +1 -0
- package/esm/trim.d.ts +3 -0
- package/esm/trim.d.ts.map +1 -0
- package/esm/trim.js +7 -0
- package/esm/trim.js.map +1 -0
- package/esm/trimEnd.d.ts +3 -0
- package/esm/trimEnd.d.ts.map +1 -0
- package/esm/trimEnd.js +9 -0
- package/esm/trimEnd.js.map +1 -0
- package/esm/trimStart.d.ts +3 -0
- package/esm/trimStart.d.ts.map +1 -0
- package/esm/trimStart.js +9 -0
- package/esm/trimStart.js.map +1 -0
- package/esm/utils/utils.d.ts +6 -0
- package/esm/utils/utils.d.ts.map +1 -0
- package/esm/utils/utils.js +7 -0
- package/esm/utils/utils.js.map +1 -0
- package/esm/waitFor.d.ts +7 -1
- package/esm/waitFor.d.ts.map +1 -1
- package/esm/waitFor.js +35 -10
- package/esm/waitFor.js.map +1 -1
- package/package.json +4 -4
- package/pnpm-lock.yaml +1162 -986
- package/src/deserialize.spec.ts +12 -0
- package/src/index.ts +7 -0
- package/src/omit.ts +8 -2
- package/src/pick.ts +1 -1
- package/src/replace.ts +0 -1
- package/src/replaceDeep.spec.ts +91 -0
- package/src/replaceDeep.ts +22 -27
- package/src/replaceDeepByFn.spec.ts +162 -0
- package/src/replaceDeepByFn.ts +93 -0
- package/src/safe.ts +0 -1
- package/src/sample.spec.ts +31 -0
- package/src/sample.ts +11 -0
- package/src/samples.spec.ts +50 -0
- package/src/samples.ts +41 -0
- package/src/serialize.spec.ts +42 -0
- package/src/serialize.ts +65 -18
- package/src/shuffle.spec.ts +39 -0
- package/src/shuffle.ts +13 -0
- package/src/toggle.spec.ts +43 -0
- package/src/toggle.ts +22 -0
- package/src/trim.spec.ts +22 -0
- package/src/trim.ts +23 -0
- package/src/trimEnd.spec.ts +20 -0
- package/src/trimEnd.ts +22 -0
- package/src/trimStart.spec.ts +20 -0
- package/src/trimStart.ts +22 -0
- package/src/utils/utils.ts +11 -0
- package/src/waitFor.spec.ts +141 -0
- package/src/waitFor.ts +69 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>replace | @ezez/utils -
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>replace | @ezez/utils - v4.0.0</title><meta name="description" content="Documentation for @ezez/utils - v4.0.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script><link rel="stylesheet" href="../assets/pages.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@ezez/utils -
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@ezez/utils - v4.0.0</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-8 col-content">
|
|
13
13
|
<div class="tsd-page-title">
|
|
14
14
|
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../modules.html">@ezez/utils -
|
|
15
|
+
<li><a href="../modules.html">@ezez/utils - v4.0.0</a></li>
|
|
16
16
|
<li><a href="replace.html">replace</a></li></ul>
|
|
17
17
|
<h1>Function replace</h1></div>
|
|
18
18
|
<section class="tsd-panel">
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</div></li></ul></div>
|
|
41
41
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
42
42
|
<ul>
|
|
43
|
-
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/
|
|
43
|
+
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/a7fcba0/src/replace.ts#L10">replace.ts:10</a></li></ul></aside></li></ul></section></div>
|
|
44
44
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
45
45
|
<div class="tsd-navigation settings">
|
|
46
46
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
61
61
|
<div class="tsd-accordion-details">
|
|
62
62
|
<ul>
|
|
63
|
-
<li><a href="../modules.html">@ezez/utils -<wbr/>
|
|
63
|
+
<li><a href="../modules.html">@ezez/utils -<wbr/> v4.0.0</a>
|
|
64
64
|
<ul>
|
|
65
65
|
<li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="../pages/Introduction.html">Introduction</a></li>
|
|
66
66
|
<li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="../pages/CHANGELOG.html">Changelog</a></li></ul></li></ul></div></details></nav>
|
|
@@ -126,17 +126,24 @@
|
|
|
126
126
|
<li class="tsd-kind-function"><a href="rethrow.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>rethrow</a></li>
|
|
127
127
|
<li class="tsd-kind-function"><a href="round.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>round</a></li>
|
|
128
128
|
<li class="tsd-kind-function"><a href="safe.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>safe</a></li>
|
|
129
|
+
<li class="tsd-kind-function"><a href="sample.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sample</a></li>
|
|
130
|
+
<li class="tsd-kind-function"><a href="samples.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>samples</a></li>
|
|
129
131
|
<li class="tsd-kind-function"><a href="scale.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>scale</a></li>
|
|
130
132
|
<li class="tsd-kind-function"><a href="seq.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>seq</a></li>
|
|
131
133
|
<li class="tsd-kind-function"><a href="seqEarlyBreak.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>seq<wbr/>Early<wbr/>Break</a></li>
|
|
132
134
|
<li class="tsd-kind-function"><a href="serialize.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>serialize</a></li>
|
|
133
135
|
<li class="tsd-kind-function"><a href="set.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>set</a></li>
|
|
134
136
|
<li class="tsd-kind-function"><a href="setImmutable.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>set<wbr/>Immutable</a></li>
|
|
137
|
+
<li class="tsd-kind-function"><a href="shuffle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>shuffle</a></li>
|
|
135
138
|
<li class="tsd-kind-function"><a href="sortBy.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sort<wbr/>By</a></li>
|
|
136
139
|
<li class="tsd-kind-function"><a href="sortProps.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sort<wbr/>Props</a></li>
|
|
137
140
|
<li class="tsd-kind-function"><a href="stripPrefix.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>strip<wbr/>Prefix</a></li>
|
|
138
141
|
<li class="tsd-kind-function"><a href="stripSuffix.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>strip<wbr/>Suffix</a></li>
|
|
139
142
|
<li class="tsd-kind-function"><a href="throttle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>throttle</a></li>
|
|
143
|
+
<li class="tsd-kind-function"><a href="toggle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>toggle</a></li>
|
|
144
|
+
<li class="tsd-kind-function"><a href="trim.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim</a></li>
|
|
145
|
+
<li class="tsd-kind-function"><a href="trimEnd.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim<wbr/>End</a></li>
|
|
146
|
+
<li class="tsd-kind-function"><a href="trimStart.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim<wbr/>Start</a></li>
|
|
140
147
|
<li class="tsd-kind-function"><a href="truthy.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>truthy</a></li>
|
|
141
148
|
<li class="tsd-kind-function"><a href="unique.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>unique</a></li>
|
|
142
149
|
<li class="tsd-kind-function"><a href="wait.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>wait</a></li>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>replaceDeep | @ezez/utils -
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>replaceDeep | @ezez/utils - v4.0.0</title><meta name="description" content="Documentation for @ezez/utils - v4.0.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script><link rel="stylesheet" href="../assets/pages.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,22 +6,27 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@ezez/utils -
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@ezez/utils - v4.0.0</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-8 col-content">
|
|
13
13
|
<div class="tsd-page-title">
|
|
14
14
|
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../modules.html">@ezez/utils -
|
|
15
|
+
<li><a href="../modules.html">@ezez/utils - v4.0.0</a></li>
|
|
16
16
|
<li><a href="replaceDeep.html">replaceDeep</a></li></ul>
|
|
17
17
|
<h1>Function replaceDeep</h1></div>
|
|
18
18
|
<section class="tsd-panel">
|
|
19
19
|
<ul class="tsd-signatures tsd-kind-function">
|
|
20
|
-
<li class="tsd-signature tsd-anchor-link" id="replaceDeep">replace<wbr/>Deep<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span>source<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span>, search<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">unknown</span>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">unknown</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><a href="#replaceDeep" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></li>
|
|
20
|
+
<li class="tsd-signature tsd-anchor-link" id="replaceDeep">replace<wbr/>Deep<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span>source<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span>, search<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">unknown</span>, value<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">unknown</span>, options<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">Options</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><a href="#replaceDeep" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none" id="icon-anchor-a"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5" id="icon-anchor-b"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5" id="icon-anchor-c"></path></svg></a></li>
|
|
21
21
|
<li class="tsd-description">
|
|
22
22
|
<div class="tsd-comment tsd-typography"><p>Replaces all occurrences of <code>search</code> with <code>value</code> in <code>source</code> object/array. Comparison is done with <code>Object.is</code>.
|
|
23
23
|
If <code>source</code> is exactly the <code>search</code> a <code>value</code> will be returned. It does not do a substring replacements.</p>
|
|
24
|
-
<p>
|
|
24
|
+
<p>Warnings:</p>
|
|
25
|
+
<ul>
|
|
26
|
+
<li>By default, it does not mutate the <code>source</code>/deep objects/arrays, but it can be enabled with <code>mutate</code> option.</li>
|
|
27
|
+
<li>By default, it does not go into instances for replacement, only plain objects.</li>
|
|
28
|
+
<li>If your instances are cross-referenced, you may end up in an infinite loop.</li>
|
|
29
|
+
</ul>
|
|
25
30
|
<p>TypeScript users: This is way too dynamic to type properly, therefore, typing assumes the most basic form of
|
|
26
31
|
replacement where search and value are of the same type. If that's not the case for you - you'll have to typecast.</p>
|
|
27
32
|
</div>
|
|
@@ -44,10 +49,14 @@ replacement where search and value are of the same type. If that's not the c
|
|
|
44
49
|
<li>
|
|
45
50
|
<h5>value: <span class="tsd-signature-type">unknown</span></h5>
|
|
46
51
|
<div class="tsd-comment tsd-typography"><p>value to replace with</p>
|
|
52
|
+
</div></li>
|
|
53
|
+
<li>
|
|
54
|
+
<h5><code class="tsd-tag ts-flagOptional">Optional</code> options: <span class="tsd-signature-type">Options</span></h5>
|
|
55
|
+
<div class="tsd-comment tsd-typography"><p>optional options</p>
|
|
47
56
|
</div></li></ul></div>
|
|
48
57
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span></h4><aside class="tsd-sources">
|
|
49
58
|
<ul>
|
|
50
|
-
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/
|
|
59
|
+
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/a7fcba0/src/replaceDeep.ts#L33">replaceDeep.ts:33</a></li></ul></aside></li></ul></section></div>
|
|
51
60
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
52
61
|
<div class="tsd-navigation settings">
|
|
53
62
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -67,7 +76,7 @@ replacement where search and value are of the same type. If that's not the c
|
|
|
67
76
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
68
77
|
<div class="tsd-accordion-details">
|
|
69
78
|
<ul>
|
|
70
|
-
<li><a href="../modules.html">@ezez/utils -<wbr/>
|
|
79
|
+
<li><a href="../modules.html">@ezez/utils -<wbr/> v4.0.0</a>
|
|
71
80
|
<ul>
|
|
72
81
|
<li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="../pages/Introduction.html">Introduction</a></li>
|
|
73
82
|
<li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="../pages/CHANGELOG.html">Changelog</a></li></ul></li></ul></div></details></nav>
|
|
@@ -133,17 +142,24 @@ replacement where search and value are of the same type. If that's not the c
|
|
|
133
142
|
<li class="tsd-kind-function"><a href="rethrow.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>rethrow</a></li>
|
|
134
143
|
<li class="tsd-kind-function"><a href="round.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>round</a></li>
|
|
135
144
|
<li class="tsd-kind-function"><a href="safe.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>safe</a></li>
|
|
145
|
+
<li class="tsd-kind-function"><a href="sample.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sample</a></li>
|
|
146
|
+
<li class="tsd-kind-function"><a href="samples.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>samples</a></li>
|
|
136
147
|
<li class="tsd-kind-function"><a href="scale.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>scale</a></li>
|
|
137
148
|
<li class="tsd-kind-function"><a href="seq.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>seq</a></li>
|
|
138
149
|
<li class="tsd-kind-function"><a href="seqEarlyBreak.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>seq<wbr/>Early<wbr/>Break</a></li>
|
|
139
150
|
<li class="tsd-kind-function"><a href="serialize.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>serialize</a></li>
|
|
140
151
|
<li class="tsd-kind-function"><a href="set.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>set</a></li>
|
|
141
152
|
<li class="tsd-kind-function"><a href="setImmutable.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>set<wbr/>Immutable</a></li>
|
|
153
|
+
<li class="tsd-kind-function"><a href="shuffle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>shuffle</a></li>
|
|
142
154
|
<li class="tsd-kind-function"><a href="sortBy.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sort<wbr/>By</a></li>
|
|
143
155
|
<li class="tsd-kind-function"><a href="sortProps.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sort<wbr/>Props</a></li>
|
|
144
156
|
<li class="tsd-kind-function"><a href="stripPrefix.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>strip<wbr/>Prefix</a></li>
|
|
145
157
|
<li class="tsd-kind-function"><a href="stripSuffix.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>strip<wbr/>Suffix</a></li>
|
|
146
158
|
<li class="tsd-kind-function"><a href="throttle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>throttle</a></li>
|
|
159
|
+
<li class="tsd-kind-function"><a href="toggle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>toggle</a></li>
|
|
160
|
+
<li class="tsd-kind-function"><a href="trim.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim</a></li>
|
|
161
|
+
<li class="tsd-kind-function"><a href="trimEnd.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim<wbr/>End</a></li>
|
|
162
|
+
<li class="tsd-kind-function"><a href="trimStart.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim<wbr/>Start</a></li>
|
|
147
163
|
<li class="tsd-kind-function"><a href="truthy.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>truthy</a></li>
|
|
148
164
|
<li class="tsd-kind-function"><a href="unique.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>unique</a></li>
|
|
149
165
|
<li class="tsd-kind-function"><a href="wait.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>wait</a></li>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>rethrow | @ezez/utils -
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>rethrow | @ezez/utils - v4.0.0</title><meta name="description" content="Documentation for @ezez/utils - v4.0.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script><link rel="stylesheet" href="../assets/pages.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@ezez/utils -
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@ezez/utils - v4.0.0</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-8 col-content">
|
|
13
13
|
<div class="tsd-page-title">
|
|
14
14
|
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../modules.html">@ezez/utils -
|
|
15
|
+
<li><a href="../modules.html">@ezez/utils - v4.0.0</a></li>
|
|
16
16
|
<li><a href="rethrow.html">rethrow</a></li></ul>
|
|
17
17
|
<h1>Function rethrow</h1></div>
|
|
18
18
|
<section class="tsd-panel">
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
<h5>e: <span class="tsd-signature-type">unknown</span></h5></li></ul></div>
|
|
29
29
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">never</span></h4><aside class="tsd-sources">
|
|
30
30
|
<ul>
|
|
31
|
-
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/
|
|
31
|
+
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/a7fcba0/src/rethrow.ts#L5">rethrow.ts:5</a></li></ul></aside></li></ul></section></div>
|
|
32
32
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
33
33
|
<div class="tsd-navigation settings">
|
|
34
34
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
49
49
|
<div class="tsd-accordion-details">
|
|
50
50
|
<ul>
|
|
51
|
-
<li><a href="../modules.html">@ezez/utils -<wbr/>
|
|
51
|
+
<li><a href="../modules.html">@ezez/utils -<wbr/> v4.0.0</a>
|
|
52
52
|
<ul>
|
|
53
53
|
<li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="../pages/Introduction.html">Introduction</a></li>
|
|
54
54
|
<li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="../pages/CHANGELOG.html">Changelog</a></li></ul></li></ul></div></details></nav>
|
|
@@ -114,17 +114,24 @@
|
|
|
114
114
|
<li class="current tsd-kind-function"><a href="rethrow.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>rethrow</a></li>
|
|
115
115
|
<li class="tsd-kind-function"><a href="round.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>round</a></li>
|
|
116
116
|
<li class="tsd-kind-function"><a href="safe.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>safe</a></li>
|
|
117
|
+
<li class="tsd-kind-function"><a href="sample.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sample</a></li>
|
|
118
|
+
<li class="tsd-kind-function"><a href="samples.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>samples</a></li>
|
|
117
119
|
<li class="tsd-kind-function"><a href="scale.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>scale</a></li>
|
|
118
120
|
<li class="tsd-kind-function"><a href="seq.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>seq</a></li>
|
|
119
121
|
<li class="tsd-kind-function"><a href="seqEarlyBreak.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>seq<wbr/>Early<wbr/>Break</a></li>
|
|
120
122
|
<li class="tsd-kind-function"><a href="serialize.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>serialize</a></li>
|
|
121
123
|
<li class="tsd-kind-function"><a href="set.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>set</a></li>
|
|
122
124
|
<li class="tsd-kind-function"><a href="setImmutable.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>set<wbr/>Immutable</a></li>
|
|
125
|
+
<li class="tsd-kind-function"><a href="shuffle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>shuffle</a></li>
|
|
123
126
|
<li class="tsd-kind-function"><a href="sortBy.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sort<wbr/>By</a></li>
|
|
124
127
|
<li class="tsd-kind-function"><a href="sortProps.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sort<wbr/>Props</a></li>
|
|
125
128
|
<li class="tsd-kind-function"><a href="stripPrefix.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>strip<wbr/>Prefix</a></li>
|
|
126
129
|
<li class="tsd-kind-function"><a href="stripSuffix.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>strip<wbr/>Suffix</a></li>
|
|
127
130
|
<li class="tsd-kind-function"><a href="throttle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>throttle</a></li>
|
|
131
|
+
<li class="tsd-kind-function"><a href="toggle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>toggle</a></li>
|
|
132
|
+
<li class="tsd-kind-function"><a href="trim.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim</a></li>
|
|
133
|
+
<li class="tsd-kind-function"><a href="trimEnd.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim<wbr/>End</a></li>
|
|
134
|
+
<li class="tsd-kind-function"><a href="trimStart.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim<wbr/>Start</a></li>
|
|
128
135
|
<li class="tsd-kind-function"><a href="truthy.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>truthy</a></li>
|
|
129
136
|
<li class="tsd-kind-function"><a href="unique.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>unique</a></li>
|
|
130
137
|
<li class="tsd-kind-function"><a href="wait.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>wait</a></li>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>round | @ezez/utils -
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>round | @ezez/utils - v4.0.0</title><meta name="description" content="Documentation for @ezez/utils - v4.0.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script><link rel="stylesheet" href="../assets/pages.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@ezez/utils -
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@ezez/utils - v4.0.0</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-8 col-content">
|
|
13
13
|
<div class="tsd-page-title">
|
|
14
14
|
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../modules.html">@ezez/utils -
|
|
15
|
+
<li><a href="../modules.html">@ezez/utils - v4.0.0</a></li>
|
|
16
16
|
<li><a href="round.html">round</a></li></ul>
|
|
17
17
|
<h1>Function round</h1></div>
|
|
18
18
|
<section class="tsd-panel">
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
</div></li></ul></div>
|
|
38
38
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4><aside class="tsd-sources">
|
|
39
39
|
<ul>
|
|
40
|
-
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/
|
|
40
|
+
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/a7fcba0/src/round.ts#L13">round.ts:13</a></li></ul></aside></li></ul></section></div>
|
|
41
41
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
42
42
|
<div class="tsd-navigation settings">
|
|
43
43
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
58
58
|
<div class="tsd-accordion-details">
|
|
59
59
|
<ul>
|
|
60
|
-
<li><a href="../modules.html">@ezez/utils -<wbr/>
|
|
60
|
+
<li><a href="../modules.html">@ezez/utils -<wbr/> v4.0.0</a>
|
|
61
61
|
<ul>
|
|
62
62
|
<li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="../pages/Introduction.html">Introduction</a></li>
|
|
63
63
|
<li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="../pages/CHANGELOG.html">Changelog</a></li></ul></li></ul></div></details></nav>
|
|
@@ -123,17 +123,24 @@
|
|
|
123
123
|
<li class="tsd-kind-function"><a href="rethrow.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>rethrow</a></li>
|
|
124
124
|
<li class="current tsd-kind-function"><a href="round.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>round</a></li>
|
|
125
125
|
<li class="tsd-kind-function"><a href="safe.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>safe</a></li>
|
|
126
|
+
<li class="tsd-kind-function"><a href="sample.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sample</a></li>
|
|
127
|
+
<li class="tsd-kind-function"><a href="samples.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>samples</a></li>
|
|
126
128
|
<li class="tsd-kind-function"><a href="scale.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>scale</a></li>
|
|
127
129
|
<li class="tsd-kind-function"><a href="seq.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>seq</a></li>
|
|
128
130
|
<li class="tsd-kind-function"><a href="seqEarlyBreak.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>seq<wbr/>Early<wbr/>Break</a></li>
|
|
129
131
|
<li class="tsd-kind-function"><a href="serialize.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>serialize</a></li>
|
|
130
132
|
<li class="tsd-kind-function"><a href="set.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>set</a></li>
|
|
131
133
|
<li class="tsd-kind-function"><a href="setImmutable.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>set<wbr/>Immutable</a></li>
|
|
134
|
+
<li class="tsd-kind-function"><a href="shuffle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>shuffle</a></li>
|
|
132
135
|
<li class="tsd-kind-function"><a href="sortBy.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sort<wbr/>By</a></li>
|
|
133
136
|
<li class="tsd-kind-function"><a href="sortProps.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sort<wbr/>Props</a></li>
|
|
134
137
|
<li class="tsd-kind-function"><a href="stripPrefix.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>strip<wbr/>Prefix</a></li>
|
|
135
138
|
<li class="tsd-kind-function"><a href="stripSuffix.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>strip<wbr/>Suffix</a></li>
|
|
136
139
|
<li class="tsd-kind-function"><a href="throttle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>throttle</a></li>
|
|
140
|
+
<li class="tsd-kind-function"><a href="toggle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>toggle</a></li>
|
|
141
|
+
<li class="tsd-kind-function"><a href="trim.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim</a></li>
|
|
142
|
+
<li class="tsd-kind-function"><a href="trimEnd.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim<wbr/>End</a></li>
|
|
143
|
+
<li class="tsd-kind-function"><a href="trimStart.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim<wbr/>Start</a></li>
|
|
137
144
|
<li class="tsd-kind-function"><a href="truthy.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>truthy</a></li>
|
|
138
145
|
<li class="tsd-kind-function"><a href="unique.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>unique</a></li>
|
|
139
146
|
<li class="tsd-kind-function"><a href="wait.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>wait</a></li>
|
package/docs/functions/safe.html
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>safe | @ezez/utils -
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>safe | @ezez/utils - v4.0.0</title><meta name="description" content="Documentation for @ezez/utils - v4.0.0"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script><link rel="stylesheet" href="../assets/pages.css"/></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@ezez/utils -
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">@ezez/utils - v4.0.0</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-8 col-content">
|
|
13
13
|
<div class="tsd-page-title">
|
|
14
14
|
<ul class="tsd-breadcrumb">
|
|
15
|
-
<li><a href="../modules.html">@ezez/utils -
|
|
15
|
+
<li><a href="../modules.html">@ezez/utils - v4.0.0</a></li>
|
|
16
16
|
<li><a href="safe.html">safe</a></li></ul>
|
|
17
17
|
<h1>Function safe</h1></div>
|
|
18
18
|
<section class="tsd-panel">
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span></h4></li></ul></li></ul></li></ul></div>
|
|
45
45
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">undefined</span></h4><aside class="tsd-sources">
|
|
46
46
|
<ul>
|
|
47
|
-
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/
|
|
47
|
+
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/a7fcba0/src/safe.ts#L1">safe.ts:1</a></li></ul></aside></li>
|
|
48
48
|
<li class="tsd-signature tsd-anchor-link" id="safe-1">safe<span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">Y</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">(</span>fn<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">)</span>, def<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">Y</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">Y</span><a href="#safe-1" aria-label="Permalink" class="tsd-anchor-icon"><svg class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><use href="#icon-anchor-a"></use><use href="#icon-anchor-b"></use><use href="#icon-anchor-c"></use></svg></a></li>
|
|
49
49
|
<li class="tsd-description">
|
|
50
50
|
<div class="tsd-comment tsd-typography"><p>Safely execute a function, return its return value or default value if the function throws.</p>
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
</div></li></ul></div>
|
|
79
79
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">Y</span></h4><aside class="tsd-sources">
|
|
80
80
|
<ul>
|
|
81
|
-
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/
|
|
81
|
+
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/a7fcba0/src/safe.ts#L2">safe.ts:2</a></li></ul></aside></li></ul></section></div>
|
|
82
82
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
83
83
|
<div class="tsd-navigation settings">
|
|
84
84
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
<h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.93896 8.531L12 15.591L19.061 8.531L16.939 6.409L12 11.349L7.06098 6.409L4.93896 8.531Z" fill="var(--color-text)"></path></svg> Modules</h3></summary>
|
|
99
99
|
<div class="tsd-accordion-details">
|
|
100
100
|
<ul>
|
|
101
|
-
<li><a href="../modules.html">@ezez/utils -<wbr/>
|
|
101
|
+
<li><a href="../modules.html">@ezez/utils -<wbr/> v4.0.0</a>
|
|
102
102
|
<ul>
|
|
103
103
|
<li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="../pages/Introduction.html">Introduction</a></li>
|
|
104
104
|
<li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="../pages/CHANGELOG.html">Changelog</a></li></ul></li></ul></div></details></nav>
|
|
@@ -164,17 +164,24 @@
|
|
|
164
164
|
<li class="tsd-kind-function"><a href="rethrow.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>rethrow</a></li>
|
|
165
165
|
<li class="tsd-kind-function"><a href="round.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>round</a></li>
|
|
166
166
|
<li class="current tsd-kind-function"><a href="safe.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>safe</a></li>
|
|
167
|
+
<li class="tsd-kind-function"><a href="sample.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sample</a></li>
|
|
168
|
+
<li class="tsd-kind-function"><a href="samples.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>samples</a></li>
|
|
167
169
|
<li class="tsd-kind-function"><a href="scale.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>scale</a></li>
|
|
168
170
|
<li class="tsd-kind-function"><a href="seq.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>seq</a></li>
|
|
169
171
|
<li class="tsd-kind-function"><a href="seqEarlyBreak.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>seq<wbr/>Early<wbr/>Break</a></li>
|
|
170
172
|
<li class="tsd-kind-function"><a href="serialize.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>serialize</a></li>
|
|
171
173
|
<li class="tsd-kind-function"><a href="set.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>set</a></li>
|
|
172
174
|
<li class="tsd-kind-function"><a href="setImmutable.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>set<wbr/>Immutable</a></li>
|
|
175
|
+
<li class="tsd-kind-function"><a href="shuffle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>shuffle</a></li>
|
|
173
176
|
<li class="tsd-kind-function"><a href="sortBy.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sort<wbr/>By</a></li>
|
|
174
177
|
<li class="tsd-kind-function"><a href="sortProps.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>sort<wbr/>Props</a></li>
|
|
175
178
|
<li class="tsd-kind-function"><a href="stripPrefix.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>strip<wbr/>Prefix</a></li>
|
|
176
179
|
<li class="tsd-kind-function"><a href="stripSuffix.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>strip<wbr/>Suffix</a></li>
|
|
177
180
|
<li class="tsd-kind-function"><a href="throttle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>throttle</a></li>
|
|
181
|
+
<li class="tsd-kind-function"><a href="toggle.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>toggle</a></li>
|
|
182
|
+
<li class="tsd-kind-function"><a href="trim.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim</a></li>
|
|
183
|
+
<li class="tsd-kind-function"><a href="trimEnd.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim<wbr/>End</a></li>
|
|
184
|
+
<li class="tsd-kind-function"><a href="trimStart.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>trim<wbr/>Start</a></li>
|
|
178
185
|
<li class="tsd-kind-function"><a href="truthy.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>truthy</a></li>
|
|
179
186
|
<li class="tsd-kind-function"><a href="unique.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>unique</a></li>
|
|
180
187
|
<li class="tsd-kind-function"><a href="wait.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-64-path"></use><use href="#icon-64-text"></use></svg>wait</a></li>
|