Skip to content Skip to sidebar Skip to footer
Showing posts with the label Ecmascript 6

Es6 Sum By Object Property In An Array

I am trying to sum the unit value by date, and create a new array where there are no duplicate date… Read more Es6 Sum By Object Property In An Array

Set The Default Value For The Object In Javascript

I have a function called addAlert and this function accepts two parameters. The first parameter of … Read more Set The Default Value For The Object In Javascript

Move Zeroes In Array Using Es6 Features

I’m new to ES6, trying to make a function that moves all zeros in the array in the last position of… Read more Move Zeroes In Array Using Es6 Features

Javascript Hoisting Var Vs Let

I'm learning some ES6 features and of course came across the let keyword and its new scope (dif… Read more Javascript Hoisting Var Vs Let

Deep-cloning An Object Using Object.fromentries()

Sometime ago, I read about the proposal of the new method Object.fromEntries() that is supported on… Read more Deep-cloning An Object Using Object.fromentries()

How Could This Be True??? Obj2.__proto__.isprototypeof(obj2) //true

Consider this short code: let obj1 = { name: 'obj1', } const obj2 = Object.create(obj1);… Read more How Could This Be True??? Obj2.__proto__.isprototypeof(obj2) //true