Skip to content

Tag: javascript

JavaScript – how to make form String to Array?

I have data const { data: communityData } = useQuery(SEE_ALL_COMMUNITIES_QUERY); communtyData is Array and it has field named communityName. if I console.log communityData.communityName[0] then ‘abs’ comes. I need to make array looks like below with this ‘abs’ So I use map function. I …

Use [e.target.name]=e.target.value inside object

I have this object: and i need to fill it in a form. i use this function: and this inside the form: The form works onsubmit, and create values in the object with the property name, and the value. But if the property (p.e: ‘title_image_lateral’), not put the new value in the correct place in the ob…

API call in express says maximum rows exceeded

I have an express app that makes an api call and prints out the results like so: The issue now is that once the API call is made, the result says Limit for result exceeded, max rows: 25.00 thousand, current rows: 40.11 thousand I know that you can increase the file size, but I don’t think that also incr…