UNPKG

php.js

Version:

Use phpjs functions as required.

12 lines (10 loc) 422 B
exports.implode=require("./implode"); module.exports=function(){ return join.apply(exports,arguments) }; function join(glue, pieces) { // discuss at: http://phpjs.org/functions/join/ // original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) // depends on: implode // example 1: join(' ', ['Kevin', 'van', 'Zonneveld']); // returns 1: 'Kevin van Zonneveld' return this.implode(glue, pieces); }