Used in function series argument.
Replace .some with for to support IE8.