We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
See #433 for context.
Describe the solution you'd like Remove usage of _.random throughout Moleculer.
_.random
Describe alternatives you've considered Vanilla suggestion would be something like Source: https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_random
//Native ES6 const random = (a = 1, b = 0) => { const lower = Math.min(a, b); const upper = Math.max(a, b); return lower + Math.random() * (upper - lower); }; const randomInt = (a = 1, b = 0) => { const lower = Math.ceil(Math.min(a, b)); const upper = Math.floor(Math.max(a, b)); return Math.floor(lower + Math.random() * (upper - lower + 1)) };
Additional context https://github.com/moleculerjs/moleculer/search?q=_.random&unscoped_q=_.random
The text was updated successfully, but these errors were encountered:
No branches or pull requests
See #433 for context.
Describe the solution you'd like
Remove usage of
_.random
throughout Moleculer.Describe alternatives you've considered
Vanilla suggestion would be something like
Source: https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_random
Additional context
https://github.com/moleculerjs/moleculer/search?q=_.random&unscoped_q=_.random
The text was updated successfully, but these errors were encountered: