g.js — graphical objects for JavaScript

cyclecycle

Repeat the items in the list until the new list is of a certain length.

g.cycle([1, 2, 3], 5)

Parameters

  • l: The list of items to repeat.
  • length: The desired length of the list.