Skip to content
This repository has been archived by the owner on Jul 30, 2020. It is now read-only.

Commit

Permalink
+ iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
rez1dent3 committed Sep 22, 2017
1 parent 8eba259 commit 234ae51
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Helpers/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,16 @@ public static function get(array $storage, $key, $default = null)
}
}

/**
* @param \Traversable $iterator
*
* @return array
*/
public static function iterator($iterator)
{
return \iterator_to_array($iterator);
}

/**
* @param array $storage
*
Expand Down

0 comments on commit 234ae51

Please sign in to comment.