add (str)

This commit is contained in:
Quentin Leonetti
2019-07-14 06:12:06 +02:00
parent 15f1e6a2b1
commit b3fa6d26d5
2 changed files with 8 additions and 0 deletions

View File

@@ -221,6 +221,10 @@ function Library (ronin) {
return arg
}
this.str = (...args) => {
return args.reduce((acc, val) => { return acc + val }, '')
}
this.test = (name, a, b) => {
if (Array.isArray(a)) {
// TODO: make testing more solid