Some Non-stringifiable to Undefined: returns undefined when any expression has no toString property.
undefined
toString
const value = sn2u`string: ${'foo'} number: ${42} boolean: ${true} null: ${null} undefined: ${undefined}`;// value === undefined Copy
const value = sn2u`string: ${'foo'} number: ${42} boolean: ${true} null: ${null} undefined: ${undefined}`;// value === undefined
The string literals.
Rest
The expressions.
The output string.
Some Non-stringifiable to Undefined: returns
undefined
when any expression has notoString
property.Example