mirror of
https://github.com/jackyzha0/quartz.git
synced 2025-12-24 13:24:05 -06:00
10 lines
124 B
JavaScript
10 lines
124 B
JavaScript
const times = (n, f, x) => {
|
|
for (let i = 0; i < n; ++i) {
|
|
x = f(x);
|
|
}
|
|
return x;
|
|
};
|
|
|
|
module.exports = {
|
|
times
|
|
}; |