-
Notifications
You must be signed in to change notification settings - Fork 0
utility.Function.times
soetas edited this page Dec 1, 2024
·
2 revisions
estdlib v0.1.2 / utility / times
times<
T
>(n
,iteratee
):T
[]
Invokes the iteratee n times, returning an array of the results of each invocation
• T
• n: number
The number of times to invoke iteratee
• iteratee
The function invoked per iteration
T
[]
Returns the array of results
0.1.2
times(3, String) // => ['0', '1', '2']
times(4, ()=>0) // => [0, 0, 0, 0]
Docs made with by typedoc、typedoc-plugin-markdown & typedoc-github-wiki-theme.