@stdlib/array-mskput 0.1.0 → 0.1.1

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 CHANGED
@@ -1 +1 @@
1
- Copyright (c) 2016-2024 The Stdlib Authors.
1
+ Copyright (c) 2016-2026 The Stdlib Authors.
package/README.md CHANGED
@@ -169,6 +169,14 @@ console.log( out );
169
169
 
170
170
  <section class="related">
171
171
 
172
+ * * *
173
+
174
+ ## See Also
175
+
176
+ - <span class="package-name">[`@stdlib/array-place`][@stdlib/array/place]</span><span class="delimiter">: </span><span class="description">replace elements of an array with provided values according to a provided mask array.</span>
177
+ - <span class="package-name">[`@stdlib/array-put`][@stdlib/array/put]</span><span class="delimiter">: </span><span class="description">replace specified elements of an array with provided values.</span>
178
+ - <span class="package-name">[`@stdlib/array-take`][@stdlib/array/take]</span><span class="delimiter">: </span><span class="description">take elements from an array.</span>
179
+
172
180
  </section>
173
181
 
174
182
  <!-- /.related -->
@@ -199,7 +207,7 @@ See [LICENSE][stdlib-license].
199
207
 
200
208
  ## Copyright
201
209
 
202
- Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
210
+ Copyright &copy; 2016-2026. The Stdlib [Authors][stdlib-authors].
203
211
 
204
212
  </section>
205
213
 
@@ -212,8 +220,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
212
220
  [npm-image]: http://img.shields.io/npm/v/@stdlib/array-mskput.svg
213
221
  [npm-url]: https://npmjs.org/package/@stdlib/array-mskput
214
222
 
215
- [test-image]: https://github.com/stdlib-js/array-mskput/actions/workflows/test.yml/badge.svg?branch=v0.1.0
216
- [test-url]: https://github.com/stdlib-js/array-mskput/actions/workflows/test.yml?query=branch:v0.1.0
223
+ [test-image]: https://github.com/stdlib-js/array-mskput/actions/workflows/test.yml/badge.svg?branch=v0.1.1
224
+ [test-url]: https://github.com/stdlib-js/array-mskput/actions/workflows/test.yml?query=branch:v0.1.1
217
225
 
218
226
  [coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/array-mskput/main.svg
219
227
  [coverage-url]: https://codecov.io/github/stdlib-js/array-mskput?branch=main
@@ -225,8 +233,8 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
225
233
 
226
234
  -->
227
235
 
228
- [chat-image]: https://img.shields.io/gitter/room/stdlib-js/stdlib.svg
229
- [chat-url]: https://app.gitter.im/#/room/#stdlib-js_stdlib:gitter.im
236
+ [chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
237
+ [chat-url]: https://stdlib.zulipchat.com
230
238
 
231
239
  [stdlib]: https://github.com/stdlib-js/stdlib
232
240
 
@@ -251,6 +259,16 @@ Copyright &copy; 2016-2024. The Stdlib [Authors][stdlib-authors].
251
259
 
252
260
  [@stdlib/array/same-kind-casts]: https://www.npmjs.com/package/@stdlib/array-same-kind-casts
253
261
 
262
+ <!-- <related-links> -->
263
+
264
+ [@stdlib/array/place]: https://www.npmjs.com/package/@stdlib/array-place
265
+
266
+ [@stdlib/array/put]: https://www.npmjs.com/package/@stdlib/array-put
267
+
268
+ [@stdlib/array/take]: https://www.npmjs.com/package/@stdlib/array-take
269
+
270
+ <!-- </related-links> -->
271
+
254
272
  </section>
255
273
 
256
274
  <!-- /.links -->
@@ -68,7 +68,7 @@ interface Options {
68
68
  * var x = new Int32Array( [ 1, 2, 3, 4 ] );
69
69
  *
70
70
  * var mask = [ 1, 0, 0, 1 ];
71
- * var values = [ 20, 30 ];
71
+ * var values = new Int32Array( [ 20, 30 ] );
72
72
  *
73
73
  * var out = mskput( x, mask, values );
74
74
  * // returns <Int32Array>[ 1, 20, 30, 4 ]
@@ -81,7 +81,7 @@ interface Options {
81
81
  *
82
82
  * var x = new Int32Array( [ 1, 2, 3, 4 ] );
83
83
  *
84
- * var out = mskput( x, [ 1, 0, 0, 1 ], [ 30 ] );
84
+ * var out = mskput( x, [ 1, 0, 0, 1 ], new Int32Array( [ 30 ] ) );
85
85
  * // returns <Int32Array>[ 1, 30, 30, 4 ]
86
86
  *
87
87
  * var bool = ( out === x );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stdlib/array-mskput",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Replace elements of an array with provided values according to a provided mask array.",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -30,18 +30,18 @@
30
30
  "url": "https://github.com/stdlib-js/stdlib/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@stdlib/array-base-assert-contains": "^0.2.2",
34
- "@stdlib/array-base-assert-is-complex-floating-point-data-type": "^0.2.1",
35
- "@stdlib/array-base-assert-is-mostly-safe-data-type-cast": "^0.2.2",
36
- "@stdlib/array-base-assert-is-real-data-type": "^0.2.1",
37
- "@stdlib/array-base-mskput": "^0.1.0",
38
- "@stdlib/array-convert": "^0.2.1",
39
- "@stdlib/array-dtype": "^0.3.0",
40
- "@stdlib/assert-has-own-property": "^0.2.2",
41
- "@stdlib/assert-is-collection": "^0.2.2",
42
- "@stdlib/assert-is-plain-object": "^0.2.2",
43
- "@stdlib/string-format": "^0.2.2",
44
- "@stdlib/error-tools-fmtprodmsg": "^0.2.2"
33
+ "@stdlib/array-base-assert-contains": "^0.2.3",
34
+ "@stdlib/array-base-assert-is-complex-floating-point-data-type": "^0.2.2",
35
+ "@stdlib/array-base-assert-is-mostly-safe-data-type-cast": "^0.2.3",
36
+ "@stdlib/array-base-assert-is-real-data-type": "^0.2.2",
37
+ "@stdlib/array-base-mskput": "^0.1.1",
38
+ "@stdlib/array-convert": "^0.3.1",
39
+ "@stdlib/array-dtype": "^0.3.1",
40
+ "@stdlib/assert-has-own-property": "^0.2.3",
41
+ "@stdlib/assert-is-collection": "^0.2.3",
42
+ "@stdlib/assert-is-plain-object": "^0.2.3",
43
+ "@stdlib/string-format": "^0.2.3",
44
+ "@stdlib/error-tools-fmtprodmsg": "^0.2.3"
45
45
  },
46
46
  "devDependencies": {},
47
47
  "engines": {