Commit b5b77d7a authored by Sylvain's avatar Sylvain

🐛 is_indexed_array()

parent 9793f1f0
......@@ -9,6 +9,6 @@ if ( !function_exists('is_indexed_array')) {
*/
function is_indexed_array(array $array): bool
{
return array_keys($array) === range(0, count($array) - 1) && count($array) == 1;
return array_keys($array) === range(0, count($array) - 1);
}
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment