Object.***ign is standard.

 
Ballance: I took a frontend template and they litter it with javascript:; Basically, when user clicks on the link, it expands and shows a drop down menu. it breaks when i remove the javascript:;

Trend: Is there a page the link could go to?

Kutz: Nope, it just expands the hidden submenu

Pazos: I’d make it a button, restyled to remove the default border etc., or just some ordinary element type e.g. li with a click handler

Smallman: Is there some ***ociated script that opens the menu?

Milderberger: Delta: yeah, there is. i’m looking through it. i thought it would be easier to just grab an admin template. but seems like it’s more work than i expected!

Stubbs: In a destructuring expression, is there any way to refer to the destructured object itself? Something like { foo: { bar } } as baz = .’?

Livernois: Alright, for some reason babel isn’t working. It keeps throwing an unexpected token error. #Babel and #Gulp are both dead so if anyone happens to know how to fix this. that would be great. http://pastebin.com/5FZThMku

Hogeland: Hi all, how does this syntax work?: let res = steps.shift .args ; I already know I am definig a local variable whose indetifier is res and at leats will save the firts element of the array steps, that element will be deleted from the step array. But I don’t understan how the spread operator .args is working there.

Goyette: Iqpi, the first element must be a function, and args is an array of arguments

Mcbryar: Goyette: a,b,c=a+b+c is an array whose first element is an arrow function?

Hackwell: Is there any way to essentially wrap JSON.p**** in a constructor function, so that I my instanceof works out to the constructor but the JSON object is the this object in the constructor? without manually parsing the returned object from JSON.p**** or rewriting JSON.p****?

Romag: I ***ume JSON.p**** writes to a temporary variable so it’s impossible, but figured I’d ask if anyone here knows as I am about to give up on it

Bredernitz: Purebe: maybe you want the reviver parameter to JSON.p****

Mate: Deltab: JSON.p**** – JavaScript MDN https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/p****

Lazott: Hm, I read the MDN about but I don’t understand how the reviver could be used

Mcree: Is there an elegant way to write this in javascript? foreach$options as $key=$value $r.=”option$key/option”;

Krienke: Purebe: did you read the example?

Palin: I did but I’ll admit I didn’t quite understand what it was doing

Wischmann: I’ll give messing with that a go, thanks

Durell: Purebe: I didn’t fully understand your question, so I’m guessing

Vegar: If you’re interested, here is a fiddle: https://jsfiddle.net/tdgzLx0b/

Teitsworth: Goyette: so if I wrap a,b,c=a+b+c.shift to a bar, for instance let a = a,b,c=a+b+c.shift; and .args is arg1, arg2, . argN then is like I were executing a over each arg, like a arg1; a arg2 . a argN

Hofius: Iqpi: steps.shift takes a value from steps I’m ***uming it’s an array, and anything.args is a call to the value which must be a function

Flaim: Deltab, hah, okay, well this is wonky but it works: https://jsfiddle.net/tdgzLx0b/3/

Mella: Although it needs to be tweaked a tiny bit since the reviver also p****s the topmost empty string / object value

Willhite: Https://jsfiddle.net/tdgzLx0b/4/ pfft, well that was easy enough to do

Salemo: Iqpi: aarg1, arg2, argN

Glawe: Purebe: ah, I see what you mean now

Stoudt: Object.***ignthis, JSON.p****unitJSON;

Magnusson: Ah, I have not come across ***ign yet

Shigematsu: I wonder how performant that is

Czupryna: Https://jsfiddle.net/tdgzLx0b/5/

Gentleman: Purebe: that’s never a relevant question. https://npmjs.com/object.***ign

Pitcavage: That is a nifty shim, it’s certainly a lot more expressive than using the reviver

Gentleman: Object.***ign is standard in ES6 so it’s good to start using everywhere, with a compliant shim like that one :-