@stdlib/assert-deep-has-own-property 0.2.2 → 0.2.3
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 +9 -9
- package/docs/types/index.d.ts +2 -2
- package/package.json +8 -8
package/NOTICE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Copyright (c) 2016-
|
|
1
|
+
Copyright (c) 2016-2026 The Stdlib Authors.
|
package/README.md
CHANGED
|
@@ -276,9 +276,9 @@ bool = has( { 'a': [ { 'b': { 'c': 'd' } } ] } );
|
|
|
276
276
|
|
|
277
277
|
- <span class="package-name">[`@stdlib/assert-deep-has-property`][@stdlib/assert/deep-has-property]</span><span class="delimiter">: </span><span class="description">test whether an object contains a nested key path, either own or inherited.</span>
|
|
278
278
|
- <span class="package-name">[`@stdlib/assert-has-own-property`][@stdlib/assert/has-own-property]</span><span class="delimiter">: </span><span class="description">test if an object has a specified property.</span>
|
|
279
|
-
- <span class="package-name">[`@stdlib/
|
|
279
|
+
- <span class="package-name">[`@stdlib/object-deep-get`][@stdlib/object/deep-get]</span><span class="delimiter">: </span><span class="description">get a nested property value.</span>
|
|
280
280
|
- <span class="package-name">[`@stdlib/utils-deep-pluck`][@stdlib/utils/deep-pluck]</span><span class="delimiter">: </span><span class="description">extract a nested property value from each element of an object array.</span>
|
|
281
|
-
- <span class="package-name">[`@stdlib/
|
|
281
|
+
- <span class="package-name">[`@stdlib/object-deep-set`][@stdlib/object/deep-set]</span><span class="delimiter">: </span><span class="description">set a nested property value.</span>
|
|
282
282
|
|
|
283
283
|
</section>
|
|
284
284
|
|
|
@@ -310,7 +310,7 @@ See [LICENSE][stdlib-license].
|
|
|
310
310
|
|
|
311
311
|
## Copyright
|
|
312
312
|
|
|
313
|
-
Copyright © 2016-
|
|
313
|
+
Copyright © 2016-2026. The Stdlib [Authors][stdlib-authors].
|
|
314
314
|
|
|
315
315
|
</section>
|
|
316
316
|
|
|
@@ -323,8 +323,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
323
323
|
[npm-image]: http://img.shields.io/npm/v/@stdlib/assert-deep-has-own-property.svg
|
|
324
324
|
[npm-url]: https://npmjs.org/package/@stdlib/assert-deep-has-own-property
|
|
325
325
|
|
|
326
|
-
[test-image]: https://github.com/stdlib-js/assert-deep-has-own-property/actions/workflows/test.yml/badge.svg?branch=v0.2.
|
|
327
|
-
[test-url]: https://github.com/stdlib-js/assert-deep-has-own-property/actions/workflows/test.yml?query=branch:v0.2.
|
|
326
|
+
[test-image]: https://github.com/stdlib-js/assert-deep-has-own-property/actions/workflows/test.yml/badge.svg?branch=v0.2.3
|
|
327
|
+
[test-url]: https://github.com/stdlib-js/assert-deep-has-own-property/actions/workflows/test.yml?query=branch:v0.2.3
|
|
328
328
|
|
|
329
329
|
[coverage-image]: https://img.shields.io/codecov/c/github/stdlib-js/assert-deep-has-own-property/main.svg
|
|
330
330
|
[coverage-url]: https://codecov.io/github/stdlib-js/assert-deep-has-own-property?branch=main
|
|
@@ -336,8 +336,8 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
336
336
|
|
|
337
337
|
-->
|
|
338
338
|
|
|
339
|
-
[chat-image]: https://img.shields.io/
|
|
340
|
-
[chat-url]: https://
|
|
339
|
+
[chat-image]: https://img.shields.io/badge/zulip-join_chat-brightgreen.svg
|
|
340
|
+
[chat-url]: https://stdlib.zulipchat.com
|
|
341
341
|
|
|
342
342
|
[stdlib]: https://github.com/stdlib-js/stdlib
|
|
343
343
|
|
|
@@ -362,11 +362,11 @@ Copyright © 2016-2024. The Stdlib [Authors][stdlib-authors].
|
|
|
362
362
|
|
|
363
363
|
[@stdlib/assert/has-own-property]: https://www.npmjs.com/package/@stdlib/assert-has-own-property
|
|
364
364
|
|
|
365
|
-
[@stdlib/
|
|
365
|
+
[@stdlib/object/deep-get]: https://www.npmjs.com/package/@stdlib/object-deep-get
|
|
366
366
|
|
|
367
367
|
[@stdlib/utils/deep-pluck]: https://www.npmjs.com/package/@stdlib/utils-deep-pluck
|
|
368
368
|
|
|
369
|
-
[@stdlib/
|
|
369
|
+
[@stdlib/object/deep-set]: https://www.npmjs.com/package/@stdlib/object-deep-set
|
|
370
370
|
|
|
371
371
|
<!-- </related-links> -->
|
|
372
372
|
|
package/docs/types/index.d.ts
CHANGED
|
@@ -36,7 +36,7 @@ interface Options {
|
|
|
36
36
|
*
|
|
37
37
|
* @example
|
|
38
38
|
* var obj = { 'a': { 'b': { 'c': 'd' } } };
|
|
39
|
-
* var bool = deepHasOwnProp( obj );
|
|
39
|
+
* var bool = deepHasOwnProp( obj, 'a' );
|
|
40
40
|
*/
|
|
41
41
|
type HasFunction = ( value: any ) => boolean;
|
|
42
42
|
|
|
@@ -96,7 +96,7 @@ interface DeepHasOwnProp {
|
|
|
96
96
|
( value: any, path: string | Array<string>, options?: Options ): boolean;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* Returns a function which tests whether an object has a nested key path
|
|
99
|
+
* Returns a function which tests whether an object has a nested key path.
|
|
100
100
|
*
|
|
101
101
|
* ## Notes
|
|
102
102
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stdlib/assert-deep-has-own-property",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Test whether an object contains a nested key path.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"url": "https://github.com/stdlib-js/stdlib/issues"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@stdlib/assert-has-own-property": "^0.2.
|
|
34
|
-
"@stdlib/assert-is-array": "^0.2.
|
|
35
|
-
"@stdlib/assert-is-plain-object": "^0.2.
|
|
36
|
-
"@stdlib/assert-is-string": "^0.2.
|
|
37
|
-
"@stdlib/string-format": "^0.2.
|
|
38
|
-
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.
|
|
39
|
-
"@stdlib/error-tools-fmtprodmsg": "^0.2.
|
|
33
|
+
"@stdlib/assert-has-own-property": "^0.2.3",
|
|
34
|
+
"@stdlib/assert-is-array": "^0.2.3",
|
|
35
|
+
"@stdlib/assert-is-plain-object": "^0.2.3",
|
|
36
|
+
"@stdlib/assert-is-string": "^0.2.3",
|
|
37
|
+
"@stdlib/string-format": "^0.2.3",
|
|
38
|
+
"@stdlib/utils-define-nonenumerable-read-only-property": "^0.2.3",
|
|
39
|
+
"@stdlib/error-tools-fmtprodmsg": "^0.2.3"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {},
|
|
42
42
|
"engines": {
|