function compactStrict(array) {
  var index = -1,
    length = array ? array.length : 0,
    resIndex = 0,
    result = [];

  while (++index < length) {
    var value = array[index];
    if (!_.isNil(value)) {
      result[resIndex++] = value;
    }
  }
  return result;
}
Creates an array with all nullish values removed. The values `undefined` and `nullish` are falsey.

@static
@memberOf _
@category Array
@param {Array} array The array to compact.
@returns {Array} Returns the new array of filtered values.
@example

_.compact([0, 1, false, undefined, 2, '', 3, Null]);
// => [0, 1, false, 2 '', 3]