lazy-widgets
Version:
Typescript retained mode GUI for the HTML canvas API
15 lines • 515 B
JavaScript
export function filterIDFromProperties(properties) {
if (properties === undefined || !(('id' in properties) || ('enabled' in properties))) {
return properties;
}
else {
const newProperties = {};
for (const name of Object.getOwnPropertyNames(properties)) {
if (name !== 'id' && name !== 'enabled') {
newProperties[name] = properties[name];
}
}
return newProperties;
}
}
//# sourceMappingURL=filterIDFromProperties.js.map