Returns a new function which when applied to an argument, has the same effect as applying the specified function to the same argument 3 times.
the function to be repeated
the new function that has the same effect as (x => func(func(func(x))))
(x => func(func(func(x))))
const plusNine = thrice(x => x + 3);plusNine(0); // Returns 9 Copy
const plusNine = thrice(x => x + 3);plusNine(0); // Returns 9
Returns a new function which when applied to an argument, has the same effect as applying the specified function to the same argument 3 times.