Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
let out = new Stream(() => {
let seenHash = readHash(hash);
let seenValue = read(value);
let format = {};
if (seenValue && seenValue instanceof LiteralWrapper) {
seenValue = seenValue.value;
}
if (optionalReturnEmpty && optionalReturnEmpty(seenValue, seenHash)) {
return;
}
if (seenHash && seenHash.format) {
format = intl.getFormat(formatType, seenHash.format);
}
return formatter.format.call(