---
name: "up.util.times"
area: "API"
kind: "JavaScript function"
parent: "up.util module"
visibility: "deprecated"
url: "https://unpoly.com/api/up.util.times"
---
<nav aria-label="Unpoly docs">[All docs](https://unpoly.com/index.md) · [up.util module](https://unpoly.com/api/up.util.md)</nav>

# up.util.times(count, block)

**This feature has been deprecated**. Use a `for` loop instead.

Load [`unpoly-migrate.js`](https://unpoly.com/changes/upgrading.md) to polyfill deprecated features.

Calls the given function for the given number of times.

---

## Parameters {#parameters}

### count {#count}

(required)

Type: number

### block {#block}

(required)

Type: Function()

