object-scan
Advanced tools
Comparing version
{ | ||
"name": "object-scan", | ||
"version": "16.0.0", | ||
"version": "16.0.1", | ||
"description": "Traverse object hierarchies using matching and callbacks.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -973,3 +973,15 @@ # Object-Scan | ||
</details> | ||
<details><summary> <code>['**(^a$)']</code> <em>(star recursion matches roots)</em> </summary> | ||
<!-- eslint-disable no-undef --> | ||
```js | ||
const haystack = [0, [{ a: 1 }, 2]]; | ||
objectScan(['**(^a$)'], { | ||
joined: true, | ||
useArraySelector: false | ||
})(haystack); | ||
// => [ '[1][1]', '[1][0].a', '[1][0]', '[0]' ] | ||
``` | ||
</details> | ||
## Internals | ||
@@ -976,0 +988,0 @@ |
60727
0.52%1000
1.21%