Skip to main content
  1. About
  2. For Teams
Filter by
Sorted by
Tagged with
1 vote
1 answer
57 views

Google Maps Custom Style Not Applying in WordPress (Elementor)

I’m working on a WordPress website using the Elementor Pro page builder, and I’m trying to integrate a custom-styled Google Map on the "Contact Us" page. What I’ve done so far: Created a ...
Muhammad Ramzan's user avatar
-1 votes
1 answer
85 views

How do I declare a function async in a JavaScript object literal/initialiser?

I'd like to have the loadConfig function async and just finish after the resource has been loaded. await fetchetc. How can I declare it in this object syntax as an async function? var QMEM = QMEM || { ...
rhavin's user avatar
  • 1,764
0 votes
0 answers
124 views

Issue with Injecting Text into WhatsApp Web Input via JavaScript Extension

I'm working on a JavaScript extension for WhatsApp Web, and I'm facing a problem I can't seem to solve. The goal of my extension is to correct and manipulate the text in the message input of WhatsApp ...
brandoniscoding's user avatar
0 votes
0 answers
42 views

Why does offsetHeight log an increased height when called from object than what is shown in the object log itself?

I have an object taken from the DOM who's actual offsetHeight I can not correctly get. When trying to console.log the object to check the property, it does show the correct offsetHeight. But when I ...
foooch's user avatar
  • 1
0 votes
0 answers
27 views

Storing an object key/value in an array but not in an array element [duplicate]

I found some odd things and am looking for explanations as to how and why let a = [] ; a.push({foo:"bar",bar:"foo"}] ; console.log(a) ; As expected, prints out: [[object Object] { ...
rolinger's user avatar
  • 3,196
0 votes
0 answers
24 views

What's the difference between setting object properties recursively and Object.assign? [duplicate]

So I wrote up this helper function when I first started my project to help update objects that I would get from an API. export const setValRecursive = (currObj: any, newObj: any) => { Object.keys(...
Jennifer Nguyen's user avatar
-1 votes
1 answer
67 views

Question about Javascript: Can I assign two names to the same member? [closed]

I have a set of objects, that contain references to other objects. There is always a general reference: nextObject. But sometimes, I know more about the object beside me. So I could use a member ...
user2171796's user avatar
0 votes
1 answer
44 views

Intantiating a Javascript extended class from Array with only one element

I am implementing an extended class from Array with numerical methods such as sum, mean, std, etc. There is no problem to instantiate an object with zero or 2+ elements, but I can't implement one-...
msampaio's user avatar
  • 3,463
-5 votes
1 answer
110 views

Javascript cannot map object with repetative values

I need to style specific elements by id using given object. Keys and values in projectSkillsMap object corresponds to ids in html file. When user clicks on element with id listed in object keys ...
NanoMuffin's user avatar
-5 votes
1 answer
92 views

Initiate all potential props of the object right away or as you go? [closed]

I'm my scenario I have to create a lot of objects (100k+). Those objects can 'evolve' in the course if their life. Some will stay practically unchanged, others with will mutate and have a bunch of ...
Jurijs Kovzels's user avatar
0 votes
1 answer
72 views

How to retrieve the name of an Object passed as a Key to a Map?

I'm a newbie to Javascript. I wish to know how to get the key as 'personObj', 'carObj, 'workDetailsObj', 'displayFunction' and 'primitiveValue' and print those values in console? Also, how to print ...
TEC_Abode of Learning's user avatar
0 votes
1 answer
25 views

Merge the 2 array based on id and prioritize the latest filtered on top

const menuFilteredProducts = getMenuWiseProduct(products); const categoryFilteredProducts = getCategoryWiseProduct(products); let mergedProducts = []; const prioritizeCategory = true; if (...
Chinthan K's user avatar
5 votes
1 answer
258 views

What is a restricted JavaScript object?

I'm trying to use custom DOM events to communicate between the main world and the isolated world for a page in a webextension in Firefox. When trying to access an event object property, I get an ...
Nanigashi's user avatar
  • 708
0 votes
1 answer
63 views

Why do I get a property assignment error while using script tags on HTML

I am practicing fetching API data and displaying it on a web page. I am using Go to fetch quotes data from an API service. I want an additional slideshow functionality for the web page that should ...
John Eliud's user avatar
0 votes
0 answers
98 views

Why does the GeoJSON format expect coordinates in an array rather than an object with keys?

Take the following example from their home page: { "type": "Feature", "geometry": { "type": "Point", "coordinates": [125.6, 10.1]...
Dainank's user avatar
  • 2,613

15 30 50 per page
1
2 3 4 5
479
Morty Proxy This is a proxified and sanitized view of the page, visit original site.