Skip to content

Tag: arrays

Javascript Filter and Some on Array of Objects

I have this array of objects I have to filter this list with 4 different select boxes, Catalogues, Categories, Suppliers, Type. I can filter the list for type because it is not in an array like so but for catalogues, categories and suppliers they are a level down. I have tried but I get catalogs.some is not a…

Retrieve the value of each custom markup

How to get each value after the “=” with the shortest script? DATEADDED=20210301 20:21:02 IDENT=* IP=88.164.x.x REASON=aaa bbb ccc… NOTE=xxx xxx x x x x… Put everything in an array Example: Result response of array : [‘20210301 20:21:02’, ‘*’, ‘8.164.x.x&#…

How to use a Data Array within a Chart JS dataset?

I have the following JSON, that I want to insert a chart using Chart JS: And I created a function to load this JSON into an Array: When I load this Array into the Chart, As below: No information on “datasets” appears to me, only the “label”, what is the mistake I am making? Graphic Ima…