Skip to main content
-1 votes
0 answers
60 views

I am doing a TypeScript application example. I have my tsconfig.json file like this "compilerOptions": { "module":"commonjs", "target":&...
Diego's user avatar
  • 2,390
-1 votes
1 answer
91 views

I was brushing up on Array for an implementation and I stumbled on this discovery, I expected the following code to give me an array filled with the number 42: Array(3).map(x => 42) But instead, ...
UncleBigBay's user avatar
-1 votes
1 answer
73 views

I'm new to JavaScript and I'm trying to achieve the logic I have commented in the constructor method of the base class export default class Building { constructor(sqft) { this._sqft = sqft; ...
noel-reeds's user avatar
-4 votes
1 answer
111 views

I'm learning JavaScript and practicing merging arrays. Here's one of the methods I wrote using two for loops: const arr1 = [4, 5, 7, 9, 8]; const arr2 = [-1, -2, 0, 12]; const arr3 = []; for (let i = ...
user31029120's user avatar
2 votes
1 answer
84 views

I’m experimenting with the ECMAScript proposal for ShadowRealm and ran into some deeply unintuitive behavior around object identity, function bindings, and prototype inheritance across realms. ...
dailker's user avatar
  • 56
-4 votes
1 answer
129 views

I'm getting syntax errors when trying to modularize a Google Apps Script HTML project. The issue appears to be related to how the HTML service processes included files as templates rather than raw ...
Rafael Fontana's user avatar
-1 votes
2 answers
117 views

I am using ixjs/AyncIterable (pull-model). The simplest code I need to write at the end, to initiate the stream processing is: for await (let i of asyncIterable); But eslint does not like this: 'i' ...
Marinos An's user avatar
  • 11.3k
3 votes
1 answer
95 views

I modify the handler object after proxy's creation, and obtain intended result. But nowhere in mdn document such pattern, can i rely on this pattern to work consistently across browser/in future? ...
StructSeeker's user avatar
0 votes
2 answers
191 views

In an existing web app written in Vue and PHP, we are trying to add a Micro Frontend using Module Federation. After we configured the app, I found out that the watch command wasn't working correctly. ...
Giorgio Tempesta's user avatar
1 vote
2 answers
105 views

I wish to create a class which extends EventTarget, allowing addEventListener() and dispatchEvent() to be invoked on it. Logically, my class wants to be a singleton; if a page accidentally ...
John Leary's user avatar
1 vote
0 answers
63 views

I am writing documentation for some classes written using the ES6 class syntax. I have some classes which inherit their constructor from their parent class, as below: /** * @class */ class Parent { ...
jban28's user avatar
  • 113
2 votes
2 answers
123 views

I have a Firebase Functions project that has "type" set to "module" in package.json so that I can use ES6 syntax. Some of the files import data from another json file with a line ...
Matthew Michaud's user avatar
-3 votes
1 answer
79 views

my codes console results Here are my React codes. I know that if you write a function with a parenthesis, it will be called immediately (in this case, it will be called when elements render, I have ...
Filics's user avatar
  • 3
-1 votes
1 answer
297 views

I'm working on a figma plugin where in I need to use the components which are in published library assets. I know I should be using figma.importComponentByKeyAsync() of figma plugin API, but I m not ...
Abhishek Konnur's user avatar
0 votes
0 answers
128 views

In a webapp we are trying to solve an Open Redirect vulnerability. The code is like this: window.location.href = DOMPurify.sanitize(data.href); Which apparently is vulnerable. One recommended solution ...
Lennart's user avatar
  • 1,048

15 30 50 per page
1
2 3 4 5
1996