Created
February 16, 2022 14:24
-
-
Save russo97/cfde2baa400cf223742793c5ca5c9ce4 to your computer and use it in GitHub Desktop.
List Format using Javascript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function () { | |
const formattedList = new Intl.ListFormat('pt-BR').format(["Banana", "Maça", "Laranja"]); | |
console.log(formattedList); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment