/
githubmirror
/
immutable-js
Обзор
Документация
Войти
/
githubmirror
/
immutable-js
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
website/docs/Repeat().mdx
16 строк
577 B
Julien Deniau
Doc as mdx instead of export from .d.ts file (#2104)
24 май 2025, 00:47
Не верифицирован
24 май 2025, 00:47
21de701
Код
Авторство
О чём код?
import Repl from '@/repl/Repl.tsx'; import CodeLink from '@/mdx-components/CodeLink.tsx'; # Repeat() Returns a Seq.Indexed of `value` repeated `times` times. When `times` is not defined, returns an infinite `Seq` of `value`. <Signature code={`Repeat<T>(value: T, times?: number): Seq.Indexed<T>`} /> Note: `Repeat` is a factory function and not a class, and does not use the `new` keyword during construction. <Repl defaultValue={`//This will not be normalizable in the playground. Repeat('foo') // ['foo', 'foo', …] `} /> <Repl defaultValue={`Repeat('bar', 4)`} />