How can I create a functions within JavaScript, that i can then use and chain with others to get results from an array.
I have tried creating a class with multiple methods that can be chain together but that wont allow me to call the functions directly on the array itself.
Example:
[23,45,87,89,21,234,1,2,6,7].CustomFuncEvenNumbers().CustomFuncOrderNumbers()