dep: package update
This commit is contained in:
1 parent
872755e57f
commit
6c3b9aafc1
783 files changed
+4581
-20980
No files matched your search
+13
@@ -393,6 +393,19 @@ class Arr
|
||||
return array_keys($keys) !== $keys;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determines if an array is a list.
|
||||
*
|
||||
* An array is a "list" if all array keys are sequential integers starting from 0 with no gaps in between.
|
||||
*
|
||||
* @param array $array
|
||||
* @return bool
|
||||
*/
|
||||
public static function isList($array)
|
||||
{
|
||||
return ! self::isAssoc($array);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a subset of the items from the given array.
|
||||
*
|
||||
|
||||
Reference in new issue
Block a user