Javascript two Arrays: first counts, second values
I have two Arrays they both have the same size and look like this: a= [ 1, 2, 3, 2] and b = ['this', 'is', 'my', 'good example']. Array a[i] defines how often the value of b[i] i want to…
I have two Arrays they both have the same size and look like this: a= [ 1, 2, 3, 2] and b = ['this', 'is', 'my', 'good example']. Array a[i] defines how often the value of b[i] i want to…
I have a getAllUsers.js File, which fetched all the users from the API import axios from 'axios' export const fetchData = async () => { let response try { response = await axios.get('http://127.0.0.1:8000/api/users') } catch (e) { console.error(e.message) } return…
I wish to capitalize a first character of word that appears after a special character from specified set (array) is found in the string. Also I want ignore any number of spaces that it might have after the character from…
What I want to do: I want to send several GET-requests to this URL: https://catalog.wb.ru/brands/m/catalog?page=1&limit=300&brand=5786&dest=-1257786&sort=pricedown Then gather all the data inside of a "product" object. The value of key "PAGE" is autoincrementing to get data from all pages. Actually I'm…
I want to create a list in Flutter that shows items one beside one like one string whick consist index of each item .if i am using row then it says right overflowed by pixels. if i use a wrapper…
I have an array of objects representing sales data for different cities. Each city has an array of rooms with corresponding counts. I want to check if all cities have a count of at least three for rooms 2, 3,…
I have 20 items in total, per page 5 items How to calculate the page number if know id of item in general using javascript. Possible formula or way to calculate the page number by id value example: let itemsTotal…
I'm trying to pair elements of an array with the data of the other array in the same order and only once. const num1 = [5, 10, 0, 1000, 6, 5] const num2 = [6, 11, 0, -1000, 4, 5]…
I'am looking what functionalities that Redis Enterprise can offer, and came up with following questions. Content in JSON using JSON.Set JSON.SET warehouse:1 $ '{ "city": "Boston", "location": "42.361145, -71.057083", "inventory": [ { "id": 15970, "gender": "Men", "season":["Fall", "Winter"], "description": "Turtle…
I have number like 230. And 50 is always the limit. I want to get the following data: [50,50,50,50,30] I should get four 50's and its exist number that is less than 50. example 2. Number = 400 I should…