Remove Null Array

Hello, I have an array that has “null” value. May i know how to remove both null values and whole array that consist of all “null” values.

Hi @Benjamin123

could you post some sample data we can use to try this out for you?
This should be a part of the function needed, it will remove the null values from an array.

item.myNewField = [null,null,null,"text"];

item.noNullSimple = item.myNewField.filter(function (i) {
  return i != null;
1 Like