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