All Questions
8
questions
-1
votes
1
answer
199
views
How to reassign values of a nested (read only) object in ES6?
I have a read only object of travelers with this format:
{
"teens": {
"count": 2,
"persons": {
{
"age": "13&...
-2
votes
2
answers
106
views
Sort array of objects by key name
I need to sort the keys to an exact order, for example I have the next array:
const arr = [
{
active: true,
code: "1234",
...
0
votes
1
answer
731
views
Iterate through Object array - *ngFor - Angular 6
Could some one tell me how to iterate below data structure. ii'm trying to load in normal bootstrap table. but failed. so far i tried to for..loop inside an for of loop. but it returns undefined on '...
0
votes
2
answers
194
views
RxJS map array with another observables and return array
I have array of options that is coming from server
const options = [
{key: 1, label: 'label1'},
{key: 2, label: 'label2'},
{key: 3, label: 'label3'},
{key: 4, label: 'label4'},
{key: 5, ...
2
votes
2
answers
1k
views
Curly braces around a parameter in Angular
Looking at some Angular code:
@Component({
selector: 'my-app',
templateUrl: 'kendoGrid.component.html'
})
export class AppComponent implements OnInit {
public ...
0
votes
3
answers
609
views
Replacing the id in the array with the name from the second array
I have some problem with connecting two arrays with objects by id and replace that id by NAME from second array. For example I have arrays:
array1 = [
{id: [1, 2], info: "xxx"},
{id: [2, 3], info:...
1
vote
6
answers
204
views
Filter array of objects based on a field in each object
Let's say I have an array of objects like this:
[
{ "type": 121, "model": "model1" },
{ "type": 128, "model": "model2" },
{ "type": 130, "model": "model2" },
{ "type": 130, "model": "model2" }...
0
votes
3
answers
84
views
extracting an array of object array property
I have an array of objects.
Each object has a langauges array in it.
I need to extract all languages of all objects and they have to be unique (language shouldnt be multiple times in this array)
...