public/subjects/reverser/README.md

18 lines
458 B
Markdown

## Reverser
### Instructions
Create a function named `reverse` which accepts an array or a string. It should work like `Array.reverse()`, and of course you cannot use that.
### Notions
- [devdocs.io/javascript/global_objects/array/reverse](https://devdocs.io/javascript/global_objects/array/reverse)
### Code provided
> The provided code will be added to your solution, and does not need to be submitted.
```js
Array.prototype.reverse = undefined
```