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

feat: fromJson can take an object as parameter #5

Merged
merged 1 commit into from
Mar 29, 2018

Conversation

drazik
Copy link
Contributor

@drazik drazik commented Mar 29, 2018

This fixes #4.

In bayes.fromJson, we check if the parameter is an objet or a string. If it's a string we pass it to JSON.parse. If it's an objet we just use it.

@Wozacosta Wozacosta merged commit ecdd1bb into Wozacosta:master Mar 29, 2018
@drazik drazik deleted the fromjson-options branch March 29, 2018 15:17
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.

Can't pass options when using bayes.fromJson
2 participants