Questions tagged [ecmascript-2016]

Questions about new features specified in the ECMAScript 2016 specification.

This tag targets ECMAScript 2016, a JavaScript standard previously known as ECMAScript 7. Any proposal that reached stage 4 by Jan 28th, 2016 became part of the new version.

These are:

440 questions
-4
votes
3 answers

How to pass down custom props on initial render

I think it might be silly question to ask but trust me I didn't find an answer . I am passing down data via props to children component but I am stuck and getting error . Normally, I am passing data on form submit ( I mean when user type something…
-4
votes
2 answers

Is there a better way to refactor this for loop with map or reduce?

I'm a bit new to javascript so please be kind. I have a post that contains a for loop. And I'd like to re-write the loop with .map as It looks like I can do so here (is there a better way?) How can I do this? here is my…
Jessi
  • 701
  • 1
  • 11
  • 22
-4
votes
1 answer

JavaScript Array Object Multi Level Search Value

I want to search in JavaScript multi-level array object. [{ "head": "Heading 1", "list": [ { "name": "name 1", "desc": "desc 1" },{ "name": "name 1", "desc": "desc 1" }] },{ "head": "Heading 2", …
Adodis
  • 13
  • 2
-4
votes
2 answers

How to assign values from one object to another in javascript

I am trying to assign values from the below "details" object to the each "model" in the "formFields" array. Here is the details object const details = { criteriaName: "hello", criteriaType: "type a", description: "world" } Here is the…
-4
votes
1 answer

Convert JQuery Each into ES6/7 loop

I'm trying to remove a jQuery dependency and replacing this .each with a loop is proving tricky. // inline when src = .svg so it is styled with CSS $('[src$=".svg"]').each(function() { // get .svg var $img = $(this); var imgURL =…
AndyFitz
  • 11
  • 4
1 2 3
29
30