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