Skip to content

Conversation

@AtharvaSail11
Copy link

Description

In this PR, I have added the randomColor utility function in strings.js to generate random hex colour strings.
I also added the test case for the randomColor function.
After that, I found some issues in slugify function and truncate function as they were not giving the expected outcome and failing the test. So I fixed that also.

Type of change

  • [*] Bug fix
  • [*] New utility function
  • Documentation update
  • Performance improvement

Checklist

  • [*] Tests added/updated
  • Documentation updated (README.md)
  • [*] Code follows project style
  • All tests pass (npm test)
  • Function has JSDoc comments
  • No new dependencies added

Example usage

strings.randomColor();

Related Issues

Fixes #(issue number)

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.

1 participant