baseui
Version:
A React Component library implementing the Base design language
24 lines (21 loc) • 551 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = omitDollarPrefixedKeys;
/*
Copyright (c) Uber Technologies, Inc.
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function omitDollarPrefixedKeys(source) {
const result = {};
for (const key in source) {
if (key[0] !== '$') {
// @ts-ignore
result[key] = source[key];
}
}
return result;
}