Below is an array in which I have to group 3 values in each object
var xyz = {"name": ["hi","hello","when","test","then","that","now"]};
Output should be below array -
["hi","hello","when"]["test","then","that"]["now"]
We started with Q&A. Technical documentation is next, and we need your help.
Whether you're a beginner or an experienced developer, you can contribute.
Below is an array in which I have to group 3 values in each object
Output should be below array -
|
|||||
|
Hi please refer this https://plnkr.co/edit/3LBcBoM7UP6BZuOiorKe?p=preview. for refrence Split javascript array in chunks using underscore.js using underscore you can do JS
or Using the chain wrapper method you can combine the two statements as below:
|
|||||||||||||||||||||
|