« first day (1935 days earlier)      last day (2182 days later) » 

08:53
Hello, lets say i have a default object :
```
translations: {
title: 'Notifications',
emptyState: 'No Notifications Available',
readAll: 'Mark All Read',
clearAll: 'Clear All'
}
```
1 message moved from JavaScript
user9674579
09:51
var MyObj = {
someValue = "someRandomValue",
newObj = {
myFunction = function ( ) {
console.log ( this.Parent.someValue );
}
// this refers to newObj, this.Parent must refer to MyObj but it isn't
// It shows undefined
// I'm unable to access the this.Parent
}
};
user9674579
var MyObj = {
someValue : "someRandomValue",
newObj : {
myFunction : function ( ) {
console.log ( this.Parent.someValue );
}
// this refers to newObj, this.Parent must refer to MyObj but it isn't
// It shows undefined
// I'm unable to access the this.Parent
}
};
1 message moved from JavaScript
1 message moved from JavaScript
10:22
58 messages moved from GMTs
 
6 hours later…
16:20
this were my attempts

removeNum(num) {
for (let index = 0; index < this.Array.length; index++) {
if (this.Array[index] === num) {
this.Array.splice(index, 1);
}
}
// this.Array.forEach(element => {
// if (this.Array[element] === num) {
// this.Array.splice(element, 1);
// }
// });
}
1 message moved from JavaScript

« first day (1935 days earlier)      last day (2182 days later) »