Closed yg-i closed 10 months ago
Thanks for the PR @yg-i - it makes sense considering the sheer number of languages wikipedia supports that we should have this validation. Could you add a test for the same or i will add one over this weekend and merge this mr.
For some pages, the langLinks property is undefined, and the current implementation throws an error. An example:
throws the error:
This PR is so that langLinks() returns an empty array rather than throws an error.