dist/vue-barcode.common.js
function encode(data, structure, separator) {
	var encoded = data.split('').map(function (val, idx) {
		return BINARIES[structure[idx]];
	}).map(function (val, idx) {
		return val ? val[data[idx]] : '';
	});

	if (separator) {
		var last = data.length - 1;
		encoded = encoded.map(function (val, idx) {
			return idx < last ? val + separator : val;
		});
	}

	return encoded.join('');
}
function encode(data, structure, separator) {
	var encoded = data.split('').map(function (val, idx) {
		return BINARIES[structure[idx]];
	}).map(function (val, idx) {
		return val ? val[data[idx]] : '';
	});

	if (separator) {
		var last = data.length - 1;
		encoded = encoded.map(function (val, idx) {
			return idx < last ? val + separator : val;
		});
	}

	return encoded.join('');
}
function encode ( data , structure , separator ) { var encoded = data . split ( '' ) . map ( function ( val , idx ) { return BINARIES [ structure [ idx ] ] ; } ) . map ( function ( val , idx ) { return val ? val [ data [ idx ] ] : '' ; } ) ; if ( separator ) { var last = data . length - 1 ; encoded = encoded . map ( function ( val , idx ) { return idx < last ? val + separator : val ; } ) ; } return encoded . join ( '' ) ; }
Encode data string
Encode data string