Category : arrays

I am filtering this list [ { appLearningItemId: 67 catalogues: (2) [ {id: 1041, value: "New Catalog"}, {id: 1058, value: "Test"}] categories: (3) [{id: 1, value: "Soft Skills"}, {id: 3, value: "Non-technical"}, {id: 5, value: "Induction"}] code: "CCE0013" suppliers: (3) [{id: 1, value: "Company XYZ Ltd"}, {id: 2, value: "test c2"}, {id: 17, value: "new ..

Read more

I have two arrays like so: const data = [ { createOn: "2021-02-06T18:03", data: [ {id: "1612634593915", createOn: "2021-02-06T18:03:13.915"}, {id: "1612634622462", createOn: "2021-02-06T18:03:42.462"}, {id: "1612634584081", createOn: "2021-02-06T18:03:04.081"}, ] }, { createOn: "2021-02-06T18:02", data: [ {id: "1612634576145", createOn: "2021-02-06T18:02:56.145"}, {id: "1612634557111", createOn: "2021-02-06T18:02:37.110"} ] } ] const listId = [‘1612634622462’, ‘1612634557111’]; Then I try to remove ..

Read more

I’m using a standard Custom Javascript array to return line items for Impact Radius. I use this Custom Javascript to return line items for other advertising platforms like Criteo, Facebook, Pinterest etc and these platforms all receive the line item data For Impact Radius though, for their conversion pixel, I can’t see the line item ..

Read more

I have this Array ["2.900000F02A_1313_01","2.600000F02A_1315_03","2.900000F02A_1354_01"] And I want to split it like this: [ {"name":"F02A_1313_01", "Voltage":"2.900000"}, {"name":"F02A_1315_03", "Voltage":"2.600000"}, {"name":"F02A_1354_01", "Voltage":"2.900000"} ] This is my Code that doesn’t work: for (var i in msg.strg) { array.push(i.split(/[a-zA-Z].*/g)); } Does somebody know how I can do this? Source: Ask Javascript..

Read more

I have an URL where some data is stored, like [ {"id":1,"first_name":"add","last_name":"add"}, {"id":2,"first_name":"sfdf","last_name":"aad"} ] etc. I want to sort it by last name and display already sorted array in React functional component. How can I achieve this? UPD. I have a problem with transforming data from url to an accessible js array, not with sort ..

Read more