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

Make versions with side effects #10

Closed
Raiondesu opened this issue Mar 24, 2019 · 0 comments
Closed

Make versions with side effects #10

Raiondesu opened this issue Mar 24, 2019 · 0 comments
Labels
enhancement New feature or request
Projects

Comments

@Raiondesu
Copy link
Owner

Raiondesu commented Mar 24, 2019

Add versions of packages that assign themselves as random() functions to the constructor of a respective type, like Constructor.random()

For example:

Number.random();
String.random();
Boolean.random();
Object.random();
...

Usage would then be (for number, for example):

import '@js-random/number/integrate';
//or
require('@js-random/number/integrate');

// and then

Number.random(0, 10); // random number from 0 to 10
@Raiondesu Raiondesu created this issue from a note in Features (To do) Mar 24, 2019
@Raiondesu Raiondesu added the enhancement New feature or request label Mar 24, 2019
Features automation moved this from To do to Done Mar 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Features
  
Done
Development

No branches or pull requests

1 participant