Non-stringifiable to Empty String: replaces expressions without toString property with empty strings.
const value = n2e`string: ${'foo'} number: ${42} boolean: ${true} null: ${null} undefined: ${undefined}`;// value === 'string: foo number: 42 boolean: true null: undefined: ' Copy
const value = n2e`string: ${'foo'} number: ${42} boolean: ${true} null: ${null} undefined: ${undefined}`;// value === 'string: foo number: 42 boolean: true null: undefined: '
The string literals.
Rest
The expressions.
The output string.
Non-stringifiable to Empty String: replaces expressions without toString property with empty strings.
Example