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 static of() method #5

Closed roberto-butti closed 2 years ago

roberto-butti commented 2 years ago

The Arr::of() method creates a new Arr instance from a variable number of arguments, regardless of number or type of the arguments. Like this one: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/of