For backwards compatibility, I might recommend making this options.loop instead of options.loops. Unless maybe it's going to behave functionally different from the original 1.0 loop property?
|
let loops = Number(options.loops); |
(It took me some time to figure out that the spec for this changed, so I wanted to note it here.)