How to check if the value of a property of an object Javascript has been changed?

Viewed 26

I have an array of objects and I want to do some action when the lastModified property value has been modified. What design pattern or feature can I implement in Javascript/Typescript?

[
  {
    name: '.htaccess',
    type: 'file',
    size: 3709,
    owner: 'uryydmh3',
    group: 'www-data',
    permissions: { owner: 6, group: 6 },
    lastModified: 2022-08-08T15:41:08.000Z
  },
]
0 Answers
Related