Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Likhith/create custom merge function #63

Conversation

likhith-deriv
Copy link
Contributor

Created a merge function that can replace lodash.merge function. This can eliminate import of additional library

@coveralls
Copy link
Collaborator

coveralls commented Jul 11, 2024

Pull Request Test Coverage Report for Build 9902250963

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 99.824%

Totals Coverage Status
Change from base Build 9659446309: 0.0%
Covered Lines: 567
Relevant Lines: 567

💛 - Coveralls

Copy link
Collaborator

@niloofar-deriv niloofar-deriv left a comment

Choose a reason for hiding this comment

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

LGTM 👍

[P in keyof T]?: TSources<T[P]>;
};

const replaceValue = <T>(value: T, newValue: T): T => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I was thinking is it working fine if the length of value and newValue are different? 🤔

Copy link
Collaborator

Choose a reason for hiding this comment

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

or here u're handling that ? 🤔

if (source[key] === null || source[key] === undefined) {
                continue;
            }
            

Copy link
Collaborator

Choose a reason for hiding this comment

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

ignore the comment. it's irrelevant

@niloofar-deriv niloofar-deriv merged commit 16ae82b into deriv-com:master Jul 15, 2024
2 checks passed
Copy link

🎉 This PR is included in version 0.0.29 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants