We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 203abaa commit be11868Copy full SHA for be11868
1 file changed
src/kim/present/lib/arrayutils/ArrayUtils.php
@@ -506,7 +506,7 @@ protected static function _first(array $from){
506
* @url https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/flat
507
*/
508
protected static function __flat(array $from, int $dept = 1){
509
- if($dept > 0) return [$from];
+ if($dept === 0) return (array) $from;
510
return self::_reduce($from,
511
function($currentValue, $value) use ($dept){
512
return self::__concat(
0 commit comments