@stdlib/utils-if-then 0.0.3 → 0.0.7
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/NOTICE +1 -1
- package/README.md +43 -4
- package/package.json +2 -2
- package/CHANGELOG.md +0 -5
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2022 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ limitations under the License.
|
|
|
20
20
|
|
|
21
21
|
# ifthen
|
|
22
22
|
|
|
23
|
-
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] [![dependencies][dependencies-image]][dependencies-url]
|
|
23
|
+
[![NPM version][npm-image]][npm-url] [![Build Status][test-image]][test-url] [![Coverage Status][coverage-image]][coverage-url] <!-- [![dependencies][dependencies-image]][dependencies-url] -->
|
|
24
24
|
|
|
25
25
|
> If a condition is truthy, invoke `x`; otherwise, invoke `y`.
|
|
26
26
|
|
|
@@ -131,6 +131,21 @@ for ( i = 0; i < 100; i++ ) {
|
|
|
131
131
|
|
|
132
132
|
<!-- /.references -->
|
|
133
133
|
|
|
134
|
+
<!-- Section for related `stdlib` packages. Do not manually edit this section, as it is automatically populated. -->
|
|
135
|
+
|
|
136
|
+
<section class="related">
|
|
137
|
+
|
|
138
|
+
* * *
|
|
139
|
+
|
|
140
|
+
## See Also
|
|
141
|
+
|
|
142
|
+
- <span class="package-name">[`@stdlib/utils/async/if-then`][@stdlib/utils/async/if-then]</span><span class="delimiter">: </span><span class="description">if a predicate function returns a truthy value, invoke `x`; otherwise, invoke `y`.</span>
|
|
143
|
+
- <span class="package-name">[`@stdlib/utils/if-else`][@stdlib/utils/if-else]</span><span class="delimiter">: </span><span class="description">if a condition is truthy, return `x`; otherwise, return `y`.</span>
|
|
144
|
+
|
|
145
|
+
</section>
|
|
146
|
+
|
|
147
|
+
<!-- /.related -->
|
|
148
|
+
|
|
134
149
|
<!-- Section for all links. Make sure to keep an empty line after the `section` element and another before the `/section` close. -->
|
|
135
150
|
|
|
136
151
|
|
|
@@ -144,6 +159,10 @@ This package is part of [stdlib][stdlib], a standard library for JavaScript and
|
|
|
144
159
|
|
|
145
160
|
For more information on the project, filing bug reports and feature requests, and guidance on how to develop [stdlib][stdlib], see the main project [repository][stdlib].
|
|
146
161
|
|
|
162
|
+
#### Community
|
|
163
|
+
|
|
164
|
+
[![Chat][chat-image]][chat-url]
|
|
165
|
+
|
|
147
166
|
---
|
|
148
167
|
|
|
149
168
|
## License
|
|
@@ -153,7 +172,7 @@ See [LICENSE][stdlib-license].
|
|
|
153
172
|
|
|
154
173
|
## Copyright
|
|
155
174
|
|
|
156
|
-
Copyright © 2016-
|
|
175
|
+
Copyright © 2016-2022. The Stdlib [Authors][stdlib-authors].
|
|
157
176
|
|
|
158
177
|
</section>
|
|
159
178
|
|
|
@@ -172,16 +191,36 @@ Copyright © 2016-2021. The Stdlib [Authors][stdlib-authors].
|
|
|
172
191
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/utils-if-then/main.svg
|
|
173
192
|
[coverage-url]: https://codecov.io/github/stdlib-js/utils-if-then?branch=main
|
|
174
193
|
|
|
175
|
-
|
|
194
|
+
<!--
|
|
195
|
+
|
|
196
|
+
[dependencies-image]: https://img.shields.io/david/stdlib-js/utils-if-then.svg
|
|
176
197
|
[dependencies-url]: https://david-dm.org/stdlib-js/utils-if-then/main
|
|
177
198
|
|
|
199
|
+
-->
|
|
200
|
+
|
|
201
|
+
[umd]: https://github.com/umdjs/umd
|
|
202
|
+
[es-module]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules
|
|
203
|
+
|
|
204
|
+
[deno-url]: https://github.com/stdlib-js/utils-if-then/tree/deno
|
|
205
|
+
[umd-url]: https://github.com/stdlib-js/utils-if-then/tree/umd
|
|
206
|
+
[esm-url]: https://github.com/stdlib-js/utils-if-then/tree/esm
|
|
207
|
+
|
|
208
|
+
[chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
|
|
209
|
+
[chat-url]: https://gitter.im/stdlib-js/stdlib/
|
|
210
|
+
|
|
178
211
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
179
212
|
|
|
180
213
|
[stdlib-authors]: https://github.com/stdlib-js/stdlib/graphs/contributors
|
|
181
214
|
|
|
182
215
|
[stdlib-license]: https://raw.githubusercontent.com/stdlib-js/utils-if-then/main/LICENSE
|
|
183
216
|
|
|
184
|
-
|
|
217
|
+
<!-- <related-links> -->
|
|
218
|
+
|
|
219
|
+
[@stdlib/utils/async/if-then]: https://www.npmjs.com/package/@stdlib/utils-async-if-then
|
|
220
|
+
|
|
221
|
+
[@stdlib/utils/if-else]: https://www.npmjs.com/package/@stdlib/utils-if-else
|
|
222
|
+
|
|
223
|
+
<!-- </related-links> -->
|
|
185
224
|
|
|
186
225
|
</section>
|
|
187
226
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/utils-if-then",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "If a condition is truthy, invoke `x`; otherwise, invoke `y`.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"examples": "make examples",
|
|
29
29
|
"benchmark": "make benchmark"
|
|
30
30
|
},
|
|
31
|
-
"homepage": "https://
|
|
31
|
+
"homepage": "https://stdlib.io",
|
|
32
32
|
"repository": {
|
|
33
33
|
"type": "git",
|
|
34
34
|
"url": "git://github.com/stdlib-js/utils-if-then.git"
|