unwrap-single-prop
ISCIf your container element holds just a single property, and its key is named as you suspect it may, return just that property's value. Otherwise, return the original container. Useful for `require(…).default` situations.
95
Security score
0 known advisories in v0.1.0
Weekly downloads
—
Unpacked size
4.6 kB
Dependencies
0
Last publish
1 year ago
Security advisories
No known vulnerabilities affect v0.1.0.