for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Prelude;
const flatten = __NAMESPACE__.'\flatten';
function flatten(array $xss): array
{
return \array_reduce($xss, function (array $prev, $x) {
return \is_array($x)
? \array_merge($prev, flatten($x))
: \array_merge($prev, [$x]);
}, []);
}