/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
modules/benchmarks/src/change_detection/util.ts
21 строка
587 B
Kristiyan Kostadinov
build: initial test of TypeScript 6
16 янв 2026, 00:41
16 янв 2026, 00:41
d9c980a
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {getIntParameter} from '../util.js'; export const numViews: number = getIntParameter('viewCount'); export function newArray<T = any>(size: number): T[]; export function newArray<T>(size: number, value: T): T[]; export function newArray<T>(size: number, value?: T): T[] { const list: T[] = []; for (let i = 0; i < size; i++) { list.push(value!); } return list; }