0.1.1 โข Published 6 months ago
object-strings-deep v0.1.1
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
.