Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to populate array in typescript

let a : SimpleArray[] = [
  {
    id: 1,
    name: 'Jack'
  },
  {
    id: 2,
    name: 'Jack2'
  }];

export interface SimpleArray {
  id: Number;
  name: string;
}
 
PREVIOUS NEXT
Tagged: #populate #array #typescript
ADD COMMENT
Topic
Name
1+4 =