UNPKG

locutus

Version:

Locutus other languages' standard libraries to JavaScript for fun and educational purposes

13 lines (12 loc) 494 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.join = join; const implode_ts_1 = require("../strings/implode.js"); function join(glue, pieces) { // discuss at: https://locutus.io/php/join/ // parity verified: PHP 8.3 // original by: Kevin van Zonneveld (https://kvz.io) // example 1: join(' ', ['Kevin', 'van', 'Zonneveld']) // returns 1: 'Kevin van Zonneveld' return (0, implode_ts_1.implode)(glue, pieces); }