Dashboard
PHP:
8.2.30
OS:
Linux
User:
dh_nv8b2m
/
/
usr
/
share
/
nodejs
/
yargs
/
build
/
lib
/
utils
📤 Upload
📝 New File
📁 New Folder
Close
Editing: 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; }
Save
Cancel