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: copyWithin() #9

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 copyWithin() method shallow copies part of an array to another location in the same array and returns it without modifying its length

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

Checklist

RoadSigns commented 2 years ago

Hi 👋

I'll happily pick this one up!

roberto-butti commented 2 years ago

Hi @RoadSigns , sure! thank you. I assigned it to you. Enjoy your Hacktoberfest

roberto-butti commented 2 years ago

Thank you @RoadSigns for the PR, merged #41