Answers for "how to find the last item after split in javascript"

4

javascript split get last element

a = "hello.dear.friends"
a.split(".").pop()
> "friends"
Posted by: Guest on February-18-2021

Code answers related to "how to find the last item after split in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language