public function compact($collection=null) {
    list($collection) = self::_wrapArgs(func_get_args(), 1);
    
    $collection = self::_collection($collection);
    
    $__ = new self;
    return self::_wrap($__->select($collection, function($val) {
      return (bool) $val;
    }));
  }
public function compact($collection=null) {
    list($collection) = self::_wrapArgs(func_get_args(), 1);
    
    $collection = self::_collection($collection);
    
    $__ = new self;
    return self::_wrap($__->select($collection, function($val) {
      return (bool) $val;
    }));
  }
public function compact ( $ collection = null ) { list ( $ collection ) = self :: _wrapArgs ( func_get_args ( ) , 1 ) ; $ collection = self :: _collection ( $ collection ) ; $ __ = new self ; return self :: _wrap ( $ __ -> select ( $ collection , function ( $ val ) { return ( bool ) $ val ; } ) ) ; }
Return a copy of the array with falsy values removed
Return a copy of the array with falsy values removed