number.mul(number[, number, ...]) → number array.mul(number[, number, ...]) → array
Multiply two numbers, or make a periodic array.
Example: It’s as easy as 2 * 2 = 4.
r.expr(2).mul(2).run(conn, callback)
Example: Arrays can be multiplied by numbers as well.
r.expr(["This", "is", "the", "song", "that", "never", "ends."]).mul(100).run(conn, callback)
Couldn't find what you were looking for?
© RethinkDB contributors
Licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
https://rethinkdb.com/api/javascript/mul/