JSFiddle - React, Tailwind, and code Playground

by zhuoqiang

JavaScript

function R() {
    // arguments is not Array, however we still can apply array.join() to it
    return [].join.apply(arguments, '');
}

var r = R("123", R("456", "7"), "8");
console.log(r);

var r = R("123");
console.log(r);