I have a variable named input
which is coming directly from a mySQL database.
GROUP_CONCAT(name,"(",id,")" SEPARATOR ",") AS data
When I test, if it is a string, then the output is "no"
"render": function (data, type, row) {
var input = data;
if (Object.prototype.toString.call(input) == '[object String]') {
console.log("yes");
} else {
console.log("no");
}
},
But I need the output to be "yes"...
I tested to convert the input input.toString();
But then I do not get any output at all