割った余りを求める関数をMisskeyPagesに追加

This commit is contained in:
syuilo 2019-05-03 18:48:40 +09:00
parent 0e764a2b3e
commit 4b68abd963
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
3 changed files with 6 additions and 0 deletions

View file

@ -160,6 +160,7 @@ export class ASEvaluator {
subtract: (a: number, b: number) => a - b,
multiply: (a: number, b: number) => a * b,
divide: (a: number, b: number) => a / b,
remind: (a: number, b: number) => a % b,
strLen: (a: string) => a.length,
strPick: (a: string, b: number) => a[b - 1],
strReplace: (a: string, b: string, c: string) => a.split(b).join(c),