Skip to content

Add tag function for template literals#229

Open
zazula wants to merge 4 commits intoalexei:masterfrom
zazula:master
Open

Add tag function for template literals#229
zazula wants to merge 4 commits intoalexei:masterfrom
zazula:master

Conversation

@zazula
Copy link

@zazula zazula commented Dec 21, 2023

Add a tag function to allow sprintf-style formatting in template literals.

Ex:

console.log(SPFThis is ${1.2345}%.2f)
// log 'This is 1.23'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant