adds print and map
This commit is contained in:
@@ -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') => {
|
||||
|
||||
Reference in New Issue
Block a user