Closed taylorbf closed 5 years ago
Sorry for the slow response... I added the above code in dtm.data (in data.js:3335; not using transform.js). The results are not quite exact as your examples, so perhaps you could help me fixing them (either edit the code or change the specs). You can also utilize the unit tests (test/data.spec:52). I'm adding you as a collaborator in GH.
This is an interleave function I added to my fork. It may be different than what you are planning! There are a lot of options for interleaving. But I wanted to share this in case it is similar to what you expected.
This approach allows an optional ‘depth’ for each array, which is the number of items from that array that are used before alternating.
Given:
Example 1:
Example 2:
Example 3: