* Checks if given urls are same or not * @param {...String} urls * @returns {Boolean}
(...urls)
| 35 | * @returns {Boolean} |
| 36 | */ |
| 37 | areSame(...urls) { |
| 38 | let firstUrl = urls[0]; |
| 39 | if (firstUrl.endsWith("/")) firstUrl = firstUrl.slice(0, -1); |
| 40 | return urls.every((url) => { |
| 41 | if (url.endsWith("/")) url = url.slice(0, -1); |
| 42 | return firstUrl === url; |
| 43 | }); |
| 44 | }, |
| 45 | |
| 46 | /** |
| 47 | * |
nothing calls this directly
no outgoing calls
no test coverage detected