????

Your IP : 18.191.73.161


Current Path : C:/inetpub/vhost/invest.gdtsolutions.vn/api/node_modules/yargs/build/lib/utils/
Upload File :
Current File : C:/inetpub/vhost/invest.gdtsolutions.vn/api/node_modules/yargs/build/lib/utils/obj-filter.js

import { objectKeys } from '../typings/common-types.js';
export function objFilter(original = {}, filter = () => true) {
    const obj = {};
    objectKeys(original).forEach(key => {
        if (filter(key, original[key])) {
            obj[key] = original[key];
        }
    });
    return obj;
}