UNPKG

527 BJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = omitDollarPrefixedKeys;
7
8/*
9Copyright (c) 2018-2020 Uber Technologies, Inc.
10
11This source code is licensed under the MIT license found in the
12LICENSE file in the root directory of this source tree.
13*/
14// eslint-disable-next-line flowtype/no-weak-types
15function omitDollarPrefixedKeys(source) {
16 var result = {};
17
18 for (var key in source) {
19 if (key[0] !== '$') {
20 result[key] = source[key];
21 }
22 }
23
24 return result;
25}
\No newline at end of file