Sha256: 8c8f7bc735657e5e690b956b57a47ff988dc218615a3dbee23867f94f79742e2

Contents?: true

Size: 312 Bytes

Versions: 3

Compression:

Stored size: 312 Bytes

Contents

export default function strip([...strings], ...values) {
  let str = strings
    .map((string, index) => {
      let interpolated = values[index];
      return string + (interpolated !== undefined ? interpolated : '');
    })
    .join('');
  return str
    .split('\n')
    .map(s => s.trim())
    .join('');
}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
discourse-ember-source-3.6.0.0 dist/es/internal-test-helpers/lib/strip.js
discourse-ember-source-3.5.1.1 dist/es/internal-test-helpers/lib/strip.js
discourse-ember-source-3.5.1.0 dist/dist/es/internal-test-helpers/lib/strip.js