Dark Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Retrieves all strings with an object, including keys, properties, recursive objects, and within arrays.

License

Notifications You must be signed in to change notification settings

JoshuaKGoldberg/object-strings-deep

Repository files navigation

Object Strings Deep

Retrieves all strings with an object, including keys, properties, recursive objects, and within arrays.

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.

Development

See .github/CONTRIBUTING.md, then .github/DEVELOPMENT.md. Thanks!

Contributors


Josh Goldberg

This package was templated with create-typescript-app using the Bingo framework.

This package was templated with create-typescript-app.

About

Retrieves all strings with an object, including keys, properties, recursive objects, and within arrays.

Resources

Readme

License

MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy

Stars

Watchers

Forks

Packages

Contributors