Commit e363dfbc authored by nanahira's avatar nanahira

fix a bit on readme

parent 8c840c6a
......@@ -23,9 +23,11 @@ class MyOneDice extends OneDice {
return Math.floor(Math.random() * (max - min + 1)) + min;
}
}
```
### Extend operator
```
const onedice = new OneDice()
onedice.addOperator(new Operator('+', 1, (a, [o, b]) => a + b))
```
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment