Method "slice()" created

I just grabbed the function that was in the documentation, and created a method called ```slice()```, which takes an array and returns it with the correct values ​​to iterate.