0.0.4 • Published 4 years ago
@pelevesque/interlace-strings v0.0.4
interlace-strings
Interlaces strings together.
Node Repository
https://www.npmjs.com/package/@pelevesque/interlace-strings
Installation
npm install @pelevesque/interlace-strings
Tests
Command | Description |
---|---|
npm test or npm run test | All Tests Below |
npm run cover | Standard Style |
npm run standard | Coverage |
npm run unit | Unit Tests |
Usage
const interlaceStrings = require('@pelevesque/interlace-strings')
const str1 = '12345'
const str2 = 'abcde'
const arrayOfStrings = [str1, str2]
const result = interlaceStrings(arrayOfStrings)
// result === 1a2b3c4d5e
const str1 = '12345678'
const str2 = 'abcdef'
const str3 = '!@#$'
const str4 = '_-'
const arrayOfStrings = [str1, str2, str3, str4]
const result = interlaceStrings(arrayOfStrings)
// result === 1a!_2b@-3c#4d$5e6f78