Hi-Folks / array

Arr class is built on top of the PHP array functions. Arr exposes methods for creating, managing, accessing to the array data structure.
https://packagist.org/packages/hi-folks/array
MIT License
15 stars 9 forks source link

Add Arr method: from() #13

Closed roberto-butti closed 2 years ago

roberto-butti commented 2 years ago

What

Add new method to Arr class, in src/Arr.php file

Description

The Array.from() static method creates a new, shallow-copied Array instance from an array-like or iterable object.

See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/from

Checklist

nuernbergerA commented 2 years ago

i will work on that