Skip to content

Conversation

@Ahmad44452
Copy link

Added the functionality to inject nested properties from an object. For example, for an object {platform: { username: "Ahmad" } } and the string "My name is {platform.username}" the output will be "My name is Ahmad"

Added the functionality to inject nested properties from an object. For example, for an object
{platform: { username: "Ahmad" } } and the string "My name is {platform.username}" the output will be "My name is Ahmad"

it("replace object values based on one nested key", function() {
var str = stringInject("My username is {profile.username}", { profile: { username: "tjcafferkey" } });
console.log(str)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you remove this console.log please

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. Removed the unnecessary log in the commit c0698b0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants