0.0.4 • Published 4 years ago

@pelevesque/interlace-strings v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Build Status Coverage Status JavaScript Style Guide

interlace-strings

Interlaces strings together.

Node Repository

https://www.npmjs.com/package/@pelevesque/interlace-strings

Installation

npm install @pelevesque/interlace-strings

Tests

CommandDescription
npm test or npm run testAll Tests Below
npm run coverStandard Style
npm run standardCoverage
npm run unitUnit 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