Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var stations = ['komonews', 'demosinclairads'];
- var template = ["http://{{station}}.com", "http://{{station}}.local-sinclairstoryline.com", "http://{{station}}.int-sinclairstoryline.com", "http://{{station}}.qa-sinclairstoryline.com"];
- var whitelist = function() {
- var arr = []
- for (var i = 0; i < stations.length; i++) {
- for (var index = 0; index < template.length; index++) {
- arr.push(template[index].replace('{{station}}',stations[i]));
- }
- }
- return arr
- console.log(whitelist())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement