how to generates an array of the specified length #1313
-
In some case, we need to generate an array with specified length. For example, we split a big order to serveral small work jobs. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Hi @13316090972 |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
If I can generates an array of length 8, I could dislplay 8 jobs which have 1900/8 products instantly. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
I did it with _nunjucks and range() and _json.parse.
Here's the code.