Remove with Text

Remove GetEngineeringSpcReview
Better error message
EnforceCodeStyleInBuild
NginxFileSystem
Remove Reactors and Working Directory
AppSettings
Delete self contained Thunder Tests
Back to .net8.0
api/v4/InfinityQS
ApiExplorerSettings
Wafer Counter
This commit is contained in:
2024-04-15 13:13:55 -07:00
parent 7e16ee7f98
commit 5c9f0d1aff
974 changed files with 205399 additions and 1385 deletions

View File

@ -0,0 +1,37 @@
/**
* Filter out entries from an object.
*
* @param obj - object to filter.
* @param fn - filter function.
* @returns a new object without the entries satisfying the filter function.
*/
export function filterObject(obj, fn) {
return Object.keys(obj).reduce((accum, property) => {
const value = obj[property];
if (fn(value, property, obj)) {
accum[property] = value;
}
return accum;
}, {});
}
/**
* Check if given parameter is not undefined.
*
* @param value - value to check.
* @returns whether the value is defined.
*/
export function isDefined(value) {
return typeof value !== 'undefined';
}
/**
* Returns the list of values.
*
* @param value - Value or list of values.
* @returns List of values.
*/
export function getValues(value) {
return typeof value !== 'undefined'
? [].concat(typeof value === 'string' ? value.split(',') : value)
: [];
}
//# sourceMappingURL=utils.js.map