Answers for "javscript explode by backticks"

0

javscript explode by backticks

'abcf `foo` asdjhash..`bar`.'.split('`').map((el, i) => i % 2 ? '`' + el + '`' : el)

// ["abcf ", "`foo`", " asdjhash..", "`bar`", "."]
Posted by: Guest on June-04-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language