code: function(arr) {
        var n = [], l=arr.length,i;
        for(i = 0 ; i < l ; i++) {
           if( !lang.isNull(arr[i]) && !lang.isUndefined(arr[i]) ) {
              n.push(arr[i]);
           }
        }
        return n;
     }
docs: Create a new array without the null or undefined values
  @static
  @param {Array} arr The array to compact
  @return {Array} The new array