I am having an object that looks like this: Based on the search input , I need to check if the search item is included in each object basically ins ...
I am having an object that looks like this: Based on the search input , I need to check if the search item is included in each object basically ins ...
I'm trying to a create an internal library for work. All seems to be fine until I attempt to use in another project. The file extension in all of the ...
How can I use ES2017's way to write it? I try But it couldn't work How can I use ES7 to write it? Thanks here is the package.json file, It set ...
I am having array of objects that look like this I want the above to be converted as below Basically key in the input object to be made as field ...
I am having an object that has the following structure const arr = [ {field: "f1", values: [{ count:1, value: "a"}, { count:2, value: "b"}] }, {f ...
I look at spec and I can't understand why this code cause an error: In the same time with code blocks it works well: By the way I can just mark ...
in the above object if "uid" exist its value should be applied to its parent as a value. result should be as below I tried to use recursive funct ...
index.js: Command: Problem: ESLint doesn't detect that Set doesn't exist in ES5. However, ESLint explains (https://eslint.org/docs/latest/user- ...
i have a array of object i need to join all into one single object as parent child for example expected output i tried created a blank object an ...
I am web analyst for an ecommerce store and I haven't got access to code. All I can use is Tag Manager (GTM) which allows me to use custom JS code. I ...
I want to know if some elements in an array has length zero, and with those elements I want to change the color for example. all of this with javascri ...
EmEditor macro's are still based on JavaScript 5.1, which is (in 2022) ten years old and seven versions behind. Many modern methods and functions are ...
I'm getting a "ReferenceError: _ is not defined" on a .map call like this: There doesn't appear to be any explicit mention of "_" anywhere here. Wh ...
I am having a selected object that has the following structure Also I am having current objects with the following structure Now basically I hav ...
I am having two arrays I need to compare these two arrays and the result should only have the single entry instead of duplicates. In the above exam ...
I have a requirement to merge two (or Multiple) Objects as a single object. While keeping each Object name as the parent key. The output should be ...
I recently discovered that, whenever I try to to execute a node script like that: It seem that using a script with node causes troubles with ES6 im ...
I'm trying to execute a node script inside package.json which looks like this. So when I run FILENAME=unfried-xlsx-2.xlsx npm run parse-xlsx for ex ...
I've been learning through a course how to use babel in Javascript, I understood the idea that babel with the preset "env" transpiles later versions o ...
I have an source object obj that looks like this and an array input I need to push objects that are formed after spiltting input by \. After splitt ...