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

[lodash] Remove usage of _.uniq #750

Open
abdavid opened this issue May 22, 2020 · 1 comment
Open

[lodash] Remove usage of _.uniq #750

abdavid opened this issue May 22, 2020 · 1 comment

Comments

@abdavid
Copy link

abdavid commented May 22, 2020

See #433 for context.

Describe the solution you'd like
Remove usage of _.uniq throughout Moleculer.

Describe alternatives you've considered
Source: https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_uniq

// Native
var array = [1, 2, 1, 4, 1, 3];
var result = [...new Set(array)];
console.log(result)
// output: [1, 2, 4, 3]

Additional context
https://github.com/moleculerjs/moleculer/search?q=_.uniq&unscoped_q=_.uniq

@icebob
Copy link
Member

icebob commented May 22, 2020

Need to test that it works correctly with objects as well.

@MrDroid1 MrDroid1 mentioned this issue May 12, 2023
9 tasks
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

No branches or pull requests

2 participants