Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function towns(input){
- let obj = {}
- for(let lines of input){
- let line = lines.split(" | ");
- obj.name= line[0],
- obj.latitude =Number(line[1]).toFixed(2),
- obj.longitude =Number(line[2]).toFixed(2)
- console.log(obj)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement