Object Strings Deep
Retrieves all strings with an object, including keys, properties, recursive objects, and within arrays.
Usage
// ["abc", "def", "ghi"]
getObjectStringsDeep(["abc", { def: ["ghi"] }]);
getObjectStringsDeep recursively uses Object.entries() internally to retrieve all keys and values within an object.
It then filters to all strings from keys, properties, and within arrays.
Development
See .github/CONTRIBUTING.md, then .github/DEVELOPMENT.md.
Thanks!
Contributors
Josh Goldberg |
This package was templated with
create-typescript-appusing the Bingo framework.
This package was templated with
create-typescript-app.