vue-carousel-3d
Version:
Beautiful, flexible and touch supported 3D Carousel for Vue.js
16 lines (12 loc) • 390 B
JavaScript
;
function jsHelper(...args) {
return args.reduce((result, path, i) => {
if (i) result += '\n';
if (Array.isArray(path)) {
return result + Reflect.apply(jsHelper, this, path);
}
if (!path.includes('?') && !path.endsWith('.js')) path += '.js';
return `${result}<script src="${this.url_for(path)}"></script>`;
}, '');
}
module.exports = jsHelper;