Packages
A spellchecker for Elixir, made with Bun and cspell
Current section
Files
Jump to
Current section
Files
priv/bun/node_modules/cspell-dictionary/dist/util/clean.js
/**
* Delete all `undefined` fields from an object.
* @param src - object to be cleaned
*/
export function clean(src) {
const r = src;
for (const key of Object.keys(r)) {
if (r[key] === undefined) {
delete r[key];
}
}
return r;
}
//# sourceMappingURL=clean.js.map