object-strings-deep
v0.1.1
Published
Retrieves all strings with an object, including keys, properties, recursive objects, and within arrays. 🧵
Downloads
985
Readme
Usage
npm i object-strings-deep
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.
Contributors
💙 This package was templated with
create-typescript-app
.