macro_rules! table { ($data:expr) => { ... }; ($data:expr, $columns:expr) => { ... }; }
Calls console.table()
console.table()
Since in most cases, this takes in an object, instead of, say a string literal/variable, we use serde to serialize the passed data object into JsValue.
serde
JsValue
An IntoIterator<Item = &str> can be passed to specify the columns.
IntoIterator<Item = &str>