@ezez/utils 1.9.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -1
- package/README.md +4 -0
- package/dist/deserialize.d.ts +13 -0
- package/dist/deserialize.d.ts.map +1 -0
- package/dist/deserialize.js +42 -0
- package/dist/deserialize.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/omit.js +3 -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 +3 -0
- package/dist/replaceDeep.d.ts.map +1 -0
- package/dist/replaceDeep.js +26 -0
- package/dist/replaceDeep.js.map +1 -0
- package/dist/round.d.ts +3 -0
- package/dist/round.d.ts.map +1 -0
- package/dist/round.js +9 -0
- package/dist/round.js.map +1 -0
- package/dist/safe.d.ts.map +1 -1
- package/dist/safe.js +1 -1
- package/dist/safe.js.map +1 -1
- package/dist/serialize.d.ts +16 -0
- package/dist/serialize.d.ts.map +1 -0
- package/dist/serialize.js +61 -0
- package/dist/serialize.js.map +1 -0
- package/dist/setImmutable.js +1 -1
- package/dist/setImmutable.js.map +1 -1
- package/dist/sortBy.js +1 -2
- package/dist/sortBy.js.map +1 -1
- package/dist/sortProps.d.ts.map +1 -1
- package/dist/sortProps.js.map +1 -1
- package/dist/throttle.js +5 -7
- package/dist/throttle.js.map +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/functions/cap.html +12 -6
- package/docs/functions/capitalize.html +12 -6
- package/docs/functions/coalesce.html +12 -6
- package/docs/functions/compareArrays.html +12 -6
- package/docs/functions/compareProps.html +12 -6
- package/docs/functions/deserialize.html +149 -0
- package/docs/functions/ensureArray.html +12 -6
- package/docs/functions/ensureDate.html +12 -6
- package/docs/functions/ensureError.html +12 -6
- package/docs/functions/ensurePrefix.html +12 -6
- package/docs/functions/ensureSuffix.html +12 -6
- package/docs/functions/ensureTimestamp.html +12 -6
- package/docs/functions/escapeRegExp.html +12 -6
- package/docs/functions/formatDate.html +12 -6
- package/docs/functions/get.html +12 -6
- package/docs/functions/getMultiple.html +12 -6
- package/docs/functions/insertSeparator.html +12 -6
- package/docs/functions/isEmpty.html +12 -6
- package/docs/functions/isNumericString.html +12 -6
- package/docs/functions/isPlainObject.html +12 -6
- package/docs/functions/last.html +12 -6
- package/docs/functions/later-1.html +12 -6
- package/docs/functions/mapAsync.html +12 -6
- package/docs/functions/mapValues.html +12 -6
- package/docs/functions/match.html +12 -6
- package/docs/functions/merge.html +20 -14
- package/docs/functions/mostFrequent.html +12 -6
- package/docs/functions/noop.html +12 -6
- package/docs/functions/occurrences.html +12 -6
- package/docs/functions/omit.html +12 -6
- package/docs/functions/pick.html +12 -6
- package/docs/functions/pull.html +12 -6
- package/docs/functions/remove.html +12 -6
- package/docs/functions/removeCommonProperties.html +12 -6
- package/docs/functions/replace.html +12 -6
- package/docs/functions/replaceDeep.html +154 -0
- package/docs/functions/rethrow.html +12 -6
- package/docs/functions/round.html +144 -0
- package/docs/functions/safe.html +13 -7
- package/docs/functions/scale.html +12 -6
- package/docs/functions/seq.html +12 -6
- package/docs/functions/seqEarlyBreak.html +12 -6
- package/docs/functions/serialize.html +154 -0
- package/docs/functions/set.html +12 -6
- package/docs/functions/setImmutable.html +12 -6
- package/docs/functions/sortBy.html +12 -6
- package/docs/functions/sortProps.html +15 -7
- package/docs/functions/stripPrefix.html +12 -6
- package/docs/functions/stripSuffix.html +12 -6
- package/docs/functions/throttle.html +12 -6
- package/docs/functions/truthy.html +12 -6
- package/docs/functions/unique.html +12 -6
- package/docs/functions/wait.html +12 -6
- package/docs/functions/waitFor.html +12 -6
- package/docs/functions/waitSync.html +12 -6
- package/docs/index.html +15 -5
- package/docs/interfaces/ComparePropsOptions.html +6 -6
- package/docs/interfaces/GetMultipleSource.html +12 -6
- package/docs/interfaces/GetSource.html +12 -6
- package/docs/interfaces/IsNumericStringOptions.html +9 -9
- package/docs/interfaces/OccurencesOptions.html +6 -6
- package/docs/interfaces/SetImmutableSource.html +12 -6
- package/docs/interfaces/SetSource.html +12 -6
- package/docs/interfaces/ThrottleOptions.html +7 -7
- package/docs/interfaces/ThrottledFunctionExtras.html +7 -7
- package/docs/modules.html +17 -5
- package/docs/pages/CHANGELOG.html +77 -39
- package/docs/pages/Introduction.html +11 -5
- package/docs/types/CustomDeserializers.html +152 -0
- package/docs/types/CustomSerializers.html +152 -0
- package/docs/types/Later.html +12 -6
- package/docs/types/MapValuesFn.html +12 -6
- package/docs/types/MatchCallback.html +12 -6
- package/docs/types/SeqEarlyBreaker.html +12 -6
- package/docs/types/SeqFn.html +12 -6
- package/docs/types/SeqFunctions.html +12 -6
- package/docs/types/SetImmutablePath.html +12 -6
- package/docs/types/ThrottledFunction.html +12 -6
- package/docs/variables/mapValuesUNSET.html +12 -6
- package/docs/variables/mergeUNSET.html +12 -6
- package/esm/deserialize.d.ts +13 -0
- package/esm/deserialize.d.ts.map +1 -0
- package/esm/deserialize.js +39 -0
- package/esm/deserialize.js.map +1 -0
- package/esm/index.d.ts +4 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +4 -0
- package/esm/index.js.map +1 -1
- package/esm/replace.d.ts.map +1 -1
- package/esm/replace.js.map +1 -1
- package/esm/replaceDeep.d.ts +3 -0
- package/esm/replaceDeep.d.ts.map +1 -0
- package/esm/replaceDeep.js +23 -0
- package/esm/replaceDeep.js.map +1 -0
- package/esm/round.d.ts +3 -0
- package/esm/round.d.ts.map +1 -0
- package/esm/round.js +6 -0
- package/esm/round.js.map +1 -0
- package/esm/safe.d.ts.map +1 -1
- package/esm/safe.js.map +1 -1
- package/esm/serialize.d.ts +16 -0
- package/esm/serialize.d.ts.map +1 -0
- package/esm/serialize.js +58 -0
- package/esm/serialize.js.map +1 -0
- package/esm/sortBy.js +1 -2
- package/esm/sortBy.js.map +1 -1
- package/esm/sortProps.d.ts.map +1 -1
- package/esm/sortProps.js.map +1 -1
- package/esm/throttle.js +5 -7
- package/esm/throttle.js.map +1 -1
- package/package.json +26 -25
- package/pnpm-lock.yaml +5223 -0
- package/src/deserialize.spec.ts +69 -0
- package/src/deserialize.ts +74 -0
- package/src/index.ts +4 -0
- package/src/replace.ts +0 -1
- package/src/replaceDeep.spec.ts +71 -0
- package/src/replaceDeep.ts +44 -0
- package/src/round.spec.ts +27 -0
- package/src/round.ts +21 -0
- package/src/safe.ts +0 -1
- package/src/serialize.spec.ts +83 -0
- package/src/serialize.ts +102 -0
- package/src/sortProps.ts +4 -1
- package/babel.config.cjs +0 -6
|
@@ -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>sortProps | @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>sortProps | @ezez/utils - v2.1.0</title><meta name="description" content="Documentation for @ezez/utils - v2.1.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 - v2.1.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 - v2.1.0</a></li>
|
|
16
16
|
<li><a href="sortProps.html">sortProps</a></li></ul>
|
|
17
17
|
<h1>Function sortProps</h1></div>
|
|
18
18
|
<section class="tsd-panel">
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
<li class="tsd-signature tsd-anchor-link" id="sortProps">sort<wbr/>Props<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>object<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span>, asc<span class="tsd-signature-symbol">?: </span><span class="tsd-signature-type">boolean</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="#sortProps" 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>Sorts the properties of an object alphabetically, ascending or descending.
|
|
23
|
-
|
|
23
|
+
It does not mutate the original object.</p>
|
|
24
|
+
<p>REMEMBER: In theory, JS engines do not guarantee the order of object properties.
|
|
25
|
+
In practice most of the popular engines do.</p>
|
|
24
26
|
|
|
25
27
|
<h3>Example</h3><pre><code class="language-ts"><span class="hl-2">sortProps</span><span class="hl-1">({ </span><span class="hl-3">b:</span><span class="hl-1"> </span><span class="hl-5">2</span><span class="hl-1">, </span><span class="hl-3">a:</span><span class="hl-1"> </span><span class="hl-5">1</span><span class="hl-1">, </span><span class="hl-3">z:</span><span class="hl-1"> </span><span class="hl-5">26</span><span class="hl-1"> }) </span><span class="hl-6">// { a: 1, b: 2, z: 26 }</span>
|
|
26
28
|
</code></pre>
|
|
@@ -43,7 +45,7 @@ REMEMBER: In theory JS engines do not guarantee the order of object properties.
|
|
|
43
45
|
</div></li></ul></div>
|
|
44
46
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span></h4><aside class="tsd-sources">
|
|
45
47
|
<ul>
|
|
46
|
-
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/
|
|
48
|
+
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/26ba3e6/src/sortProps.ts#L11">sortProps.ts:11</a></li></ul></aside></li></ul></section></div>
|
|
47
49
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
48
50
|
<div class="tsd-navigation settings">
|
|
49
51
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -63,7 +65,7 @@ REMEMBER: In theory JS engines do not guarantee the order of object properties.
|
|
|
63
65
|
<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>
|
|
64
66
|
<div class="tsd-accordion-details">
|
|
65
67
|
<ul>
|
|
66
|
-
<li><a href="../modules.html">@ezez/utils -<wbr/>
|
|
68
|
+
<li><a href="../modules.html">@ezez/utils -<wbr/> v2.1.0</a>
|
|
67
69
|
<ul>
|
|
68
70
|
<li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="../pages/Introduction.html">Introduction</a></li>
|
|
69
71
|
<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>
|
|
@@ -78,7 +80,9 @@ REMEMBER: In theory JS engines do not guarantee the order of object properties.
|
|
|
78
80
|
<li class="tsd-kind-interface"><a href="../interfaces/SetSource.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Set<wbr/>Source</a></li>
|
|
79
81
|
<li class="tsd-kind-interface"><a href="../interfaces/ThrottleOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Throttle<wbr/>Options</a></li>
|
|
80
82
|
<li class="tsd-kind-interface"><a href="../interfaces/ThrottledFunctionExtras.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Throttled<wbr/>Function<wbr/>Extras</a></li>
|
|
81
|
-
<li class="tsd-kind-type-alias"><a href="../types/
|
|
83
|
+
<li class="tsd-kind-type-alias"><a href="../types/CustomDeserializers.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg>Custom<wbr/>Deserializers</a></li>
|
|
84
|
+
<li class="tsd-kind-type-alias"><a href="../types/CustomSerializers.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Custom<wbr/>Serializers</a></li>
|
|
85
|
+
<li class="tsd-kind-type-alias"><a href="../types/Later.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Later</a></li>
|
|
82
86
|
<li class="tsd-kind-type-alias"><a href="../types/MapValuesFn.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Map<wbr/>Values<wbr/>Fn</a></li>
|
|
83
87
|
<li class="tsd-kind-type-alias"><a href="../types/MatchCallback.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Match<wbr/>Callback</a></li>
|
|
84
88
|
<li class="tsd-kind-type-alias"><a href="../types/SeqEarlyBreaker.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Seq<wbr/>Early<wbr/>Breaker</a></li>
|
|
@@ -93,6 +97,7 @@ REMEMBER: In theory JS engines do not guarantee the order of object properties.
|
|
|
93
97
|
<li class="tsd-kind-function"><a href="coalesce.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>coalesce</a></li>
|
|
94
98
|
<li class="tsd-kind-function"><a href="compareArrays.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>compare<wbr/>Arrays</a></li>
|
|
95
99
|
<li class="tsd-kind-function"><a href="compareProps.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>compare<wbr/>Props</a></li>
|
|
100
|
+
<li class="tsd-kind-function"><a href="deserialize.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>deserialize</a></li>
|
|
96
101
|
<li class="tsd-kind-function"><a href="ensureArray.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>ensure<wbr/>Array</a></li>
|
|
97
102
|
<li class="tsd-kind-function"><a href="ensureDate.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>ensure<wbr/>Date</a></li>
|
|
98
103
|
<li class="tsd-kind-function"><a href="ensureError.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>ensure<wbr/>Error</a></li>
|
|
@@ -122,11 +127,14 @@ REMEMBER: In theory JS engines do not guarantee the order of object properties.
|
|
|
122
127
|
<li class="tsd-kind-function"><a href="remove.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>remove</a></li>
|
|
123
128
|
<li class="tsd-kind-function"><a href="removeCommonProperties.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>remove<wbr/>Common<wbr/>Properties</a></li>
|
|
124
129
|
<li class="tsd-kind-function"><a href="replace.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>replace</a></li>
|
|
130
|
+
<li class="tsd-kind-function"><a href="replaceDeep.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>replace<wbr/>Deep</a></li>
|
|
125
131
|
<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>
|
|
132
|
+
<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>
|
|
126
133
|
<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>
|
|
127
134
|
<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>
|
|
128
135
|
<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>
|
|
129
136
|
<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>
|
|
137
|
+
<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
138
|
<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
139
|
<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>
|
|
132
140
|
<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>
|
|
@@ -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>stripPrefix | @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>stripPrefix | @ezez/utils - v2.1.0</title><meta name="description" content="Documentation for @ezez/utils - v2.1.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 - v2.1.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 - v2.1.0</a></li>
|
|
16
16
|
<li><a href="stripPrefix.html">stripPrefix</a></li></ul>
|
|
17
17
|
<h1>Function stripPrefix</h1></div>
|
|
18
18
|
<section class="tsd-panel">
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</div></li></ul></div>
|
|
35
35
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
36
36
|
<ul>
|
|
37
|
-
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/
|
|
37
|
+
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/26ba3e6/src/stripPrefix.ts#L6">stripPrefix.ts:6</a></li></ul></aside></li></ul></section></div>
|
|
38
38
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
39
39
|
<div class="tsd-navigation settings">
|
|
40
40
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
<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>
|
|
55
55
|
<div class="tsd-accordion-details">
|
|
56
56
|
<ul>
|
|
57
|
-
<li><a href="../modules.html">@ezez/utils -<wbr/>
|
|
57
|
+
<li><a href="../modules.html">@ezez/utils -<wbr/> v2.1.0</a>
|
|
58
58
|
<ul>
|
|
59
59
|
<li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="../pages/Introduction.html">Introduction</a></li>
|
|
60
60
|
<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>
|
|
@@ -69,7 +69,9 @@
|
|
|
69
69
|
<li class="tsd-kind-interface"><a href="../interfaces/SetSource.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Set<wbr/>Source</a></li>
|
|
70
70
|
<li class="tsd-kind-interface"><a href="../interfaces/ThrottleOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Throttle<wbr/>Options</a></li>
|
|
71
71
|
<li class="tsd-kind-interface"><a href="../interfaces/ThrottledFunctionExtras.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Throttled<wbr/>Function<wbr/>Extras</a></li>
|
|
72
|
-
<li class="tsd-kind-type-alias"><a href="../types/
|
|
72
|
+
<li class="tsd-kind-type-alias"><a href="../types/CustomDeserializers.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg>Custom<wbr/>Deserializers</a></li>
|
|
73
|
+
<li class="tsd-kind-type-alias"><a href="../types/CustomSerializers.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Custom<wbr/>Serializers</a></li>
|
|
74
|
+
<li class="tsd-kind-type-alias"><a href="../types/Later.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Later</a></li>
|
|
73
75
|
<li class="tsd-kind-type-alias"><a href="../types/MapValuesFn.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Map<wbr/>Values<wbr/>Fn</a></li>
|
|
74
76
|
<li class="tsd-kind-type-alias"><a href="../types/MatchCallback.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Match<wbr/>Callback</a></li>
|
|
75
77
|
<li class="tsd-kind-type-alias"><a href="../types/SeqEarlyBreaker.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Seq<wbr/>Early<wbr/>Breaker</a></li>
|
|
@@ -84,6 +86,7 @@
|
|
|
84
86
|
<li class="tsd-kind-function"><a href="coalesce.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>coalesce</a></li>
|
|
85
87
|
<li class="tsd-kind-function"><a href="compareArrays.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>compare<wbr/>Arrays</a></li>
|
|
86
88
|
<li class="tsd-kind-function"><a href="compareProps.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>compare<wbr/>Props</a></li>
|
|
89
|
+
<li class="tsd-kind-function"><a href="deserialize.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>deserialize</a></li>
|
|
87
90
|
<li class="tsd-kind-function"><a href="ensureArray.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>ensure<wbr/>Array</a></li>
|
|
88
91
|
<li class="tsd-kind-function"><a href="ensureDate.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>ensure<wbr/>Date</a></li>
|
|
89
92
|
<li class="tsd-kind-function"><a href="ensureError.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>ensure<wbr/>Error</a></li>
|
|
@@ -113,11 +116,14 @@
|
|
|
113
116
|
<li class="tsd-kind-function"><a href="remove.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>remove</a></li>
|
|
114
117
|
<li class="tsd-kind-function"><a href="removeCommonProperties.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>remove<wbr/>Common<wbr/>Properties</a></li>
|
|
115
118
|
<li class="tsd-kind-function"><a href="replace.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>replace</a></li>
|
|
119
|
+
<li class="tsd-kind-function"><a href="replaceDeep.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>replace<wbr/>Deep</a></li>
|
|
116
120
|
<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>
|
|
121
|
+
<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>
|
|
117
122
|
<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>
|
|
118
123
|
<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>
|
|
119
124
|
<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>
|
|
120
125
|
<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>
|
|
126
|
+
<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
127
|
<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
128
|
<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>
|
|
123
129
|
<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>
|
|
@@ -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>stripSuffix | @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>stripSuffix | @ezez/utils - v2.1.0</title><meta name="description" content="Documentation for @ezez/utils - v2.1.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 - v2.1.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 - v2.1.0</a></li>
|
|
16
16
|
<li><a href="stripSuffix.html">stripSuffix</a></li></ul>
|
|
17
17
|
<h1>Function stripSuffix</h1></div>
|
|
18
18
|
<section class="tsd-panel">
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
</div></li></ul></div>
|
|
35
35
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4><aside class="tsd-sources">
|
|
36
36
|
<ul>
|
|
37
|
-
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/
|
|
37
|
+
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/26ba3e6/src/stripSuffix.ts#L7">stripSuffix.ts:7</a></li></ul></aside></li></ul></section></div>
|
|
38
38
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
39
39
|
<div class="tsd-navigation settings">
|
|
40
40
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
<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>
|
|
55
55
|
<div class="tsd-accordion-details">
|
|
56
56
|
<ul>
|
|
57
|
-
<li><a href="../modules.html">@ezez/utils -<wbr/>
|
|
57
|
+
<li><a href="../modules.html">@ezez/utils -<wbr/> v2.1.0</a>
|
|
58
58
|
<ul>
|
|
59
59
|
<li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="../pages/Introduction.html">Introduction</a></li>
|
|
60
60
|
<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>
|
|
@@ -69,7 +69,9 @@
|
|
|
69
69
|
<li class="tsd-kind-interface"><a href="../interfaces/SetSource.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Set<wbr/>Source</a></li>
|
|
70
70
|
<li class="tsd-kind-interface"><a href="../interfaces/ThrottleOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Throttle<wbr/>Options</a></li>
|
|
71
71
|
<li class="tsd-kind-interface"><a href="../interfaces/ThrottledFunctionExtras.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Throttled<wbr/>Function<wbr/>Extras</a></li>
|
|
72
|
-
<li class="tsd-kind-type-alias"><a href="../types/
|
|
72
|
+
<li class="tsd-kind-type-alias"><a href="../types/CustomDeserializers.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg>Custom<wbr/>Deserializers</a></li>
|
|
73
|
+
<li class="tsd-kind-type-alias"><a href="../types/CustomSerializers.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Custom<wbr/>Serializers</a></li>
|
|
74
|
+
<li class="tsd-kind-type-alias"><a href="../types/Later.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Later</a></li>
|
|
73
75
|
<li class="tsd-kind-type-alias"><a href="../types/MapValuesFn.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Map<wbr/>Values<wbr/>Fn</a></li>
|
|
74
76
|
<li class="tsd-kind-type-alias"><a href="../types/MatchCallback.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Match<wbr/>Callback</a></li>
|
|
75
77
|
<li class="tsd-kind-type-alias"><a href="../types/SeqEarlyBreaker.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Seq<wbr/>Early<wbr/>Breaker</a></li>
|
|
@@ -84,6 +86,7 @@
|
|
|
84
86
|
<li class="tsd-kind-function"><a href="coalesce.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>coalesce</a></li>
|
|
85
87
|
<li class="tsd-kind-function"><a href="compareArrays.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>compare<wbr/>Arrays</a></li>
|
|
86
88
|
<li class="tsd-kind-function"><a href="compareProps.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>compare<wbr/>Props</a></li>
|
|
89
|
+
<li class="tsd-kind-function"><a href="deserialize.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>deserialize</a></li>
|
|
87
90
|
<li class="tsd-kind-function"><a href="ensureArray.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>ensure<wbr/>Array</a></li>
|
|
88
91
|
<li class="tsd-kind-function"><a href="ensureDate.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>ensure<wbr/>Date</a></li>
|
|
89
92
|
<li class="tsd-kind-function"><a href="ensureError.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>ensure<wbr/>Error</a></li>
|
|
@@ -113,11 +116,14 @@
|
|
|
113
116
|
<li class="tsd-kind-function"><a href="remove.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>remove</a></li>
|
|
114
117
|
<li class="tsd-kind-function"><a href="removeCommonProperties.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>remove<wbr/>Common<wbr/>Properties</a></li>
|
|
115
118
|
<li class="tsd-kind-function"><a href="replace.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>replace</a></li>
|
|
119
|
+
<li class="tsd-kind-function"><a href="replaceDeep.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>replace<wbr/>Deep</a></li>
|
|
116
120
|
<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>
|
|
121
|
+
<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>
|
|
117
122
|
<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>
|
|
118
123
|
<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>
|
|
119
124
|
<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>
|
|
120
125
|
<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>
|
|
126
|
+
<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
127
|
<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
128
|
<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>
|
|
123
129
|
<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>
|
|
@@ -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>throttle | @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>throttle | @ezez/utils - v2.1.0</title><meta name="description" content="Documentation for @ezez/utils - v2.1.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 - v2.1.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 - v2.1.0</a></li>
|
|
16
16
|
<li><a href="throttle.html">throttle</a></li></ul>
|
|
17
17
|
<h1>Function throttle</h1></div>
|
|
18
18
|
<section class="tsd-panel">
|
|
@@ -53,7 +53,7 @@ least twice.</p>
|
|
|
53
53
|
<h5><code class="tsd-tag ts-flagOptional">Optional</code> options: <a href="../interfaces/ThrottleOptions.html" class="tsd-signature-type" data-tsd-kind="Interface">ThrottleOptions</a></h5></li></ul></div>
|
|
54
54
|
<h4 class="tsd-returns-title">Returns <a href="../types/ThrottledFunction.html" class="tsd-signature-type" data-tsd-kind="Type alias">ThrottledFunction</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">F</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol"> & </span><a href="../interfaces/ThrottledFunctionExtras.html" class="tsd-signature-type" data-tsd-kind="Interface">ThrottledFunctionExtras</a></h4><aside class="tsd-sources">
|
|
55
55
|
<ul>
|
|
56
|
-
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/
|
|
56
|
+
<li>Defined in <a href="https://github.com/dzek69/bottom-line/blob/26ba3e6/src/throttle.ts#L49">throttle.ts:49</a></li></ul></aside></li></ul></section></div>
|
|
57
57
|
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
58
58
|
<div class="tsd-navigation settings">
|
|
59
59
|
<details class="tsd-index-accordion"><summary class="tsd-accordion-summary">
|
|
@@ -73,7 +73,7 @@ least twice.</p>
|
|
|
73
73
|
<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>
|
|
74
74
|
<div class="tsd-accordion-details">
|
|
75
75
|
<ul>
|
|
76
|
-
<li><a href="../modules.html">@ezez/utils -<wbr/>
|
|
76
|
+
<li><a href="../modules.html">@ezez/utils -<wbr/> v2.1.0</a>
|
|
77
77
|
<ul>
|
|
78
78
|
<li class="pages-entry pages-entry-page pages-entry-depth-1"><a href="../pages/Introduction.html">Introduction</a></li>
|
|
79
79
|
<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>
|
|
@@ -88,7 +88,9 @@ least twice.</p>
|
|
|
88
88
|
<li class="tsd-kind-interface"><a href="../interfaces/SetSource.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Set<wbr/>Source</a></li>
|
|
89
89
|
<li class="tsd-kind-interface"><a href="../interfaces/ThrottleOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Throttle<wbr/>Options</a></li>
|
|
90
90
|
<li class="tsd-kind-interface"><a href="../interfaces/ThrottledFunctionExtras.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Throttled<wbr/>Function<wbr/>Extras</a></li>
|
|
91
|
-
<li class="tsd-kind-type-alias"><a href="../types/
|
|
91
|
+
<li class="tsd-kind-type-alias"><a href="../types/CustomDeserializers.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg>Custom<wbr/>Deserializers</a></li>
|
|
92
|
+
<li class="tsd-kind-type-alias"><a href="../types/CustomSerializers.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Custom<wbr/>Serializers</a></li>
|
|
93
|
+
<li class="tsd-kind-type-alias"><a href="../types/Later.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Later</a></li>
|
|
92
94
|
<li class="tsd-kind-type-alias"><a href="../types/MapValuesFn.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Map<wbr/>Values<wbr/>Fn</a></li>
|
|
93
95
|
<li class="tsd-kind-type-alias"><a href="../types/MatchCallback.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Match<wbr/>Callback</a></li>
|
|
94
96
|
<li class="tsd-kind-type-alias"><a href="../types/SeqEarlyBreaker.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Seq<wbr/>Early<wbr/>Breaker</a></li>
|
|
@@ -103,6 +105,7 @@ least twice.</p>
|
|
|
103
105
|
<li class="tsd-kind-function"><a href="coalesce.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>coalesce</a></li>
|
|
104
106
|
<li class="tsd-kind-function"><a href="compareArrays.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>compare<wbr/>Arrays</a></li>
|
|
105
107
|
<li class="tsd-kind-function"><a href="compareProps.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>compare<wbr/>Props</a></li>
|
|
108
|
+
<li class="tsd-kind-function"><a href="deserialize.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>deserialize</a></li>
|
|
106
109
|
<li class="tsd-kind-function"><a href="ensureArray.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>ensure<wbr/>Array</a></li>
|
|
107
110
|
<li class="tsd-kind-function"><a href="ensureDate.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>ensure<wbr/>Date</a></li>
|
|
108
111
|
<li class="tsd-kind-function"><a href="ensureError.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>ensure<wbr/>Error</a></li>
|
|
@@ -132,11 +135,14 @@ least twice.</p>
|
|
|
132
135
|
<li class="tsd-kind-function"><a href="remove.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>remove</a></li>
|
|
133
136
|
<li class="tsd-kind-function"><a href="removeCommonProperties.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>remove<wbr/>Common<wbr/>Properties</a></li>
|
|
134
137
|
<li class="tsd-kind-function"><a href="replace.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>replace</a></li>
|
|
138
|
+
<li class="tsd-kind-function"><a href="replaceDeep.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>replace<wbr/>Deep</a></li>
|
|
135
139
|
<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>
|
|
140
|
+
<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>
|
|
136
141
|
<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>
|
|
137
142
|
<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>
|
|
138
143
|
<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>
|
|
139
144
|
<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>
|
|
145
|
+
<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
146
|
<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
147
|
<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>
|
|
142
148
|
<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>
|
|
@@ -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>truthy | @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>truthy | @ezez/utils - v2.1.0</title><meta name="description" content="Documentation for @ezez/utils - v2.1.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 - v2.1.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 - v2.1.0</a></li>
|
|
16
16
|
<li><a href="truthy.html">truthy</a></li></ul>
|
|
17
17
|
<h1>Function truthy</h1></div>
|
|
18
18
|
<section class="tsd-panel">
|
|
@@ -40,7 +40,7 @@ filter out falsy values from the types)</p>
|
|
|
40
40
|
</div></li></ul></div>
|
|
41
41
|
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">val</span><span class="tsd-signature-symbol"> is </span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</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/26ba3e6/src/truthy.ts#L7">truthy.ts:7</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 @@ filter out falsy values from the types)</p>
|
|
|
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/> v2.1.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>
|
|
@@ -75,7 +75,9 @@ filter out falsy values from the types)</p>
|
|
|
75
75
|
<li class="tsd-kind-interface"><a href="../interfaces/SetSource.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Set<wbr/>Source</a></li>
|
|
76
76
|
<li class="tsd-kind-interface"><a href="../interfaces/ThrottleOptions.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Throttle<wbr/>Options</a></li>
|
|
77
77
|
<li class="tsd-kind-interface"><a href="../interfaces/ThrottledFunctionExtras.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-256-path"></use><use href="#icon-256-text"></use></svg>Throttled<wbr/>Function<wbr/>Extras</a></li>
|
|
78
|
-
<li class="tsd-kind-type-alias"><a href="../types/
|
|
78
|
+
<li class="tsd-kind-type-alias"><a href="../types/CustomDeserializers.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><rect fill="var(--color-icon-background)" stroke="var(--color-ts)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6" id="icon-4194304-path"></rect><path d="M11.31 16V8.224H8.91V7.24H14.79V8.224H12.39V16H11.31Z" fill="var(--color-text)" id="icon-4194304-text"></path></svg>Custom<wbr/>Deserializers</a></li>
|
|
79
|
+
<li class="tsd-kind-type-alias"><a href="../types/CustomSerializers.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Custom<wbr/>Serializers</a></li>
|
|
80
|
+
<li class="tsd-kind-type-alias"><a href="../types/Later.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Later</a></li>
|
|
79
81
|
<li class="tsd-kind-type-alias"><a href="../types/MapValuesFn.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Map<wbr/>Values<wbr/>Fn</a></li>
|
|
80
82
|
<li class="tsd-kind-type-alias"><a href="../types/MatchCallback.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Match<wbr/>Callback</a></li>
|
|
81
83
|
<li class="tsd-kind-type-alias"><a href="../types/SeqEarlyBreaker.html" class="tsd-index-link"><svg class="tsd-kind-icon" width="24" height="24" viewBox="0 0 24 24"><use href="#icon-4194304-path"></use><use href="#icon-4194304-text"></use></svg>Seq<wbr/>Early<wbr/>Breaker</a></li>
|
|
@@ -90,6 +92,7 @@ filter out falsy values from the types)</p>
|
|
|
90
92
|
<li class="tsd-kind-function"><a href="coalesce.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>coalesce</a></li>
|
|
91
93
|
<li class="tsd-kind-function"><a href="compareArrays.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>compare<wbr/>Arrays</a></li>
|
|
92
94
|
<li class="tsd-kind-function"><a href="compareProps.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>compare<wbr/>Props</a></li>
|
|
95
|
+
<li class="tsd-kind-function"><a href="deserialize.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>deserialize</a></li>
|
|
93
96
|
<li class="tsd-kind-function"><a href="ensureArray.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>ensure<wbr/>Array</a></li>
|
|
94
97
|
<li class="tsd-kind-function"><a href="ensureDate.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>ensure<wbr/>Date</a></li>
|
|
95
98
|
<li class="tsd-kind-function"><a href="ensureError.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>ensure<wbr/>Error</a></li>
|
|
@@ -119,11 +122,14 @@ filter out falsy values from the types)</p>
|
|
|
119
122
|
<li class="tsd-kind-function"><a href="remove.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>remove</a></li>
|
|
120
123
|
<li class="tsd-kind-function"><a href="removeCommonProperties.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>remove<wbr/>Common<wbr/>Properties</a></li>
|
|
121
124
|
<li class="tsd-kind-function"><a href="replace.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>replace</a></li>
|
|
125
|
+
<li class="tsd-kind-function"><a href="replaceDeep.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>replace<wbr/>Deep</a></li>
|
|
122
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
|
+
<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>
|
|
123
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>
|
|
124
129
|
<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>
|
|
125
130
|
<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>
|
|
126
131
|
<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
|
+
<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>
|
|
127
133
|
<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>
|
|
128
134
|
<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>
|
|
129
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>
|