All Questions
5,700
questions
0
votes
2
answers
70
views
Array not resetting in JavaScript while reading from stream
I am trying to insert data coming from a remote CSV file in MongoDB (using Mongoose).
I would like to do so in bulk inserts of 100 items at a time.
Here's my code:
import csv from 'csv-parser'
import ...
0
votes
0
answers
21
views
How to Batch and Timeout Tasks with RabbitMQ in Node.js?
I'm working on a project that interacts with the blockchain using Node.js and RabbitMQ. I need to implement a system where tasks are batched into an array before being sent to the blockchain. The ...
0
votes
0
answers
31
views
I can not pass an array to Airtable create method in Nodejs
I am trying to use Airtable for the first time. I want to simply create a record into a table in Airtable. The record is an array of objects. When I had the data as an object, it went through. But it ...
0
votes
0
answers
32
views
How to see if object is in a list [duplicate]
How do I in Node.JS check if a object like {idx: X, idy: y} in is in a list?
I've tried with .index and other things, but I think because it is a object with multiple values it fail.
My list has the ...
-2
votes
1
answer
34
views
Does the concept of Index is available for LinkedList in DSA?
Does LinkedList have index to get accessed, as how we have it for array??
If yes, please let me know how the index work in LinkedList concept??
Thanks
I am beginner with LinkedList and wanted to ...
1
vote
0
answers
62
views
Variables from buffer in nodejs
I am studying pure nodejs, no express, no fastify and other frameworks that's why I don't need npm mutler and file-upload.
I am sending 2-3 mp3 files and two txt files from a client side to a nodejs ...
1
vote
0
answers
38
views
How to replace/fill div values in the Table.Cell React
I have a React table and I want to load all general data on the loading. And data that is not already loaded, I want it to be stored like empty lines.
For example, I have a Table.Cell in the Table.Row ...
0
votes
1
answer
21
views
React dynamically fill the select component and pic one selected value on form submit
using hook forms, I want to submit form data with a select option for department and these department filled dynamically from the server
I have a select component with is picking my selected values ...
-3
votes
1
answer
80
views
Converting 2-column text file to key/value pairs [closed]
I am currently learning Node.js and Express. I'm trying to convert a text file into key-value pairs.
My staircase program works like this:
The provided text file looks like this (with 300 lines):
I ...
0
votes
1
answer
36
views
NodeJS Changing all Instances of an Array inside a Nest Object
I have nested array of objects with an array inside of each object.
const nestedArray = [ objectTemp{foo: "", lines: []} ] <---- simplified example of the nested array structure.
I am ...
1
vote
2
answers
88
views
Problem when performing a push to a nested array in mongodb and nodejs
I am having a problem when performing a push to a nested array, I am trying to add one or more objects within the nested array "fieldList", when I execute the push it tells me ok but when I ...
0
votes
0
answers
29
views
How to convert array of arrays to formatted Excel file in React.js/Node.js?
I have an array of arrays representing a table. It looks something like this -
[
["Name", "Age", "Description"],
["John Doe", "26", "<div ...
0
votes
1
answer
42
views
Convert object to buffer and buffer to object
Demo
const result = [
{ // This is sample data BUT there can be multiple objects
"name": "object1",
"id": "1",
...
-1
votes
1
answer
66
views
Issues with my Javascript code to parse files
I am currently working on implementing a JavaScript code that aims to read and parse some numpy .npy files generated from Python's numpy, specified by a JSON file. These .npy files contain arrays of ...
1
vote
2
answers
45
views
how to pass json array in params to get rest api in nodejs
I have one GET API which is having array in the input.
I want to call that API through in my node.js project.
I have tried many options but none worked.
This is my REST Request.
let request = await ...