Retrieves all strings with an object, including keys, properties, recursive objects, and within arrays. ๐งต
npm install object-strings-deep
Retrieves all strings with an object, including keys, properties, recursive objects, and within arrays.
๐งต
``shell`
npm i object-strings-deep
`ts
import { getObjectStringsDeep } from "object-strings-deep";
// ["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.
See .github/CONTRIBUTING.md, then .github/DEVELOPMENT.md.
Thanks! ๐งต
Josh Goldberg โจ ๐ป ๐ ๐ ๐ค ๐ ๐ง ๐ ๐ง |
> ๐ This package was templated with create-typescript-app using the Bingo engine.
> ๐ This package was templated with create-typescript-app`.