luci-base: amend path() to handle arrays better
While the jsdoc for this function describes a string[] parameter, this
seemingly was not handled; consistent usage of various
L.(url|resource|etc) is multiple strings that become object properties.
E.g.:
L.resource('lldpd/lldpd.css');
L.url("admin", "system", "leds");
which become e.g.:
Arguments { 0: "admin/network", 1: "routes", … }
Handle a string[] parameter, by re-entering the function with any
Array[] parameter.
follow-up fix to
7c2cde52dbb14d5e878ca775946db9b3f13dcf1d
This prevents:
TypeError
parts[i].startsWith is not a function
Signed-off-by: Paul Donald <newtwen+github@gmail.com>