I'd like to make an array how this:
var varOne, varTwo, varThree; // (If vars are == null don't insert on array)
var array = [];
array = [
{"ONE": varOne},
{"TWO": varTwo},
{"THREE": varThree}
];
The inputs to the array I'd like to do only when varOne, varTwo and varThree are other than null
Best regards
null?null, for example, ifvarOne==nullthe array will be[{"TWO": varTwo},{"THREE": varThree}]