loading
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
const createNewArray = (value: string): Array<string> => {
    let output : Array<string> = [];

    output.push(value);

    return output;
}

let val = createNewArray("fdfsd");
let newVal = createNewArray(12)
console.log(val)