Skip to content

Instantly share code, notes, and snippets.

Avatar

Michael michacom

  • Salesforce.com
  • Jerusalem
View GitHub Profile
View ArrowFunctio.js
person = {
firstName: 'Moshe',
lastName: 'Cohen',
moods: ['happy', 'angry', 'sad'],
giveMeName: function () {
this.moods.forEach((mood) => {
console.log(this.firstName + " " + this.lastName + ' Can be ' + mood);
});
}
}
You can’t perform that action at this time.