Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
MetadataFile.isCustomProp = function(name) {
return File.isCustomProp(name) && builtInProps.indexOf(name) === -1;
};
Object.keys(restored).forEach((key) => {
if (File.isCustomProp(key)) {
restoredFile[key] = restored[key];
}
});
Object.keys(restored).forEach(function(key) {
if (File.isCustomProp(key)) {
restoredFile[key] = restored[key];
}
});