UNPKG

typescript-dotnet-core

Version:

A the core classes and utilities of a JavaScript-Friendly .NET Based TypeScript Library.

12 lines (11 loc) 403 B
/*! * @author electricessence / https://github.com/electricessence/ * Licensing: MIT https://github.com/electricessence/TypeScript.NET-Core/blob/master/LICENSE.md */ /** * Initializes an array depending on the requested capacity. * The returned array will have a .length equal to the value provided. * @param length * @returns {[]} */ export default function initialize<T>(length: number): T[];