package
Retrieves all strings with an object, including keys, properties, recursive objects, and within arrays. 🧵
npm install object-strings-deepGitHub-flavored package documentation.
Across all versions, last 30 days.
27,484 in 30 days
Runtime metadata.
Estimated unpacked size across 1 packages.
7.4 kB
Includes dependencies.
Retrieves all strings with an object, including keys, properties, recursive objects, and within arrays. 🧵
npm i object-strings-deepimport { 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! 🧵
💝 This package was templated with
create-typescript-appusing the Bingo engine.
💙 This package was templated with
create-typescript-app.