Linked Questions

3 votes
1 answer
885 views

I am building an app with deno and typescript. As my IDE I'm using VS Code. When I'm trying to use modern javascript syntax like await and flatMap VS Code underlines these statements in red and shows ...
IceRevenge's user avatar
  • 1,663
1 vote
0 answers
160 views

In Javascript, it is possible to flatten an array of arrays with Array​.prototype​.flat() (you can test it in Chrome's developer console) : const a = [1, 2, 3] const b = [4, 5, 6] const arr = [a, b]...
Arnaud Denoyelle's user avatar
397 votes
22 answers
226k views

TypeScript, --strictNullChecks mode. Suppose I have an array of nullable strings (string | null)[]. What would be a single-expression way to remove all nulls in a such a way that the result has type ...
SergeyS's user avatar
  • 4,580
198 votes
20 answers
264k views

I have a reactive form in Angular like below: this.AddCustomerForm = this.formBuilder.group({ Firstname: ['', Validators.required], Lastname: ['', Validators.required], Email: ['', ...
sa_'s user avatar
  • 3,034
0 votes
4 answers
7k views

I have the following code: let urls = new Map<string, any[]>(); urls.set("1", ["param=1", "param2=2", "params3=3"]); urls.set("2", ["param4=...
user avatar
7 votes
1 answer
2k views

My objective is a working Angular v10 project, using .flat() on arrays. Our team recently upgraded our Angular project to version 10. The project now, based on the Angular CLI, has the following files ...
DauleDK's user avatar
  • 3,473
0 votes
2 answers
2k views

Here's what I trying to do: Given a paginated API, get all the resources using parallel requests. The API returns a limited number of resources per call. So, you need to use an offset parameter to ...
Adrian's user avatar
  • 9,720
1 vote
2 answers
4k views

We just upgraded our application from Angular 4 to Angular 7. The site is up and running with ng serve locally and also working fine in multiple environments(ETE, QA, Pilot etc) with builds against ...
Geo j's user avatar
  • 191
3 votes
1 answer
852 views

I have a list looking like so [[{A},{B}], {C}] Is there any simple method without having to create a function that will flatten this to an array looking like so [{A},{B},{C}] I searched on SO but ...
Sox -'s user avatar
  • 612
-1 votes
2 answers
921 views

I have an array of products and an array of products that a user has access to. They share a common ID. I want to filter the array of products to only return those that the user has access to. All ...
timelfelt's user avatar
  • 680
0 votes
1 answer
1k views

I have an array like that : [{ "id": 1, "city": [{ "name": "BERLIN", } ], }, { "id": 2,...
Heptagram's user avatar
  • 145
-2 votes
1 answer
1k views

I'm trying to remove the indexes of an array in the easiest and most efficient possible way. This is the array like: Having this array (see snipet): let arr = []; arr.push([{id:1}]); arr.push([{id:...
David's user avatar
  • 668
0 votes
1 answer
1k views

I have this example set up on StackBlitz. It won't compile because there is a line that uses flatMap. The error says: Property 'flatMap' does not exist on type 'string[]'. Do you need to change your ...
Atticus29's user avatar
  • 4,482
-4 votes
2 answers
2k views

by 23 lines I get this Property 'title' does not exist on type 'faceProductList | faceProductList[]'Why does such an error occur as to solve it? code interface faceProductList { readonly title: ...
Edgar's user avatar
  • 7,008
2 votes
2 answers
694 views

I am trying to retrieve values from a table in quickbase. this is what i have so far.... service.ts public getNativeFields(){ let headers = new HttpHeaders().set("QB-Realm-Hostname&...
Hugh's user avatar
  • 89

15 30 50 per page