adds print and map

This commit is contained in:
Quentin Leonetti
2019-07-13 17:58:04 +02:00
parent 0dc0db98a9
commit 805e9ccb28
2 changed files with 16 additions and 0 deletions

View File

@@ -24,6 +24,14 @@ function Library (ronin) {
// TODO: Closes Ronin
}
this.print = (...args) => {
console.log(...args)
}
this.map = (fn, arr) => {
return arr.map(fn)
}
// Rects
this.pos = (x, y, t = 'pos') => {