Advertisement
Guest User

Untitled

a guest
Dec 18th, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. var stations = ['komonews', 'demosinclairads'];
  2. var template = ["http://{{station}}.com", "http://{{station}}.local-sinclairstoryline.com", "http://{{station}}.int-sinclairstoryline.com", "http://{{station}}.qa-sinclairstoryline.com"];
  3. var whitelist = function() {
  4. var arr = []
  5. for (var i = 0; i < stations.length; i++) {
  6. for (var index = 0; index < template.length; index++) {
  7. arr.push(template[index].replace('{{station}}',stations[i]));
  8. }
  9. }
  10. return arr
  11. console.log(whitelist())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement