Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getIStringFromBundle (str, rb) {
const isObject = typeof str === 'object';
if (rb) {
return isObject ? rb.getString(str.value, str.key) : rb.getString(str);
}
return new IString(isObject ? str.value : str);
}