adminjs
Version:
Admin panel for apps written in node.js
24 lines (18 loc) • 448 B
Markdown
From all keys in `params` it removes this passed in an argument.
```javascript
import flat from '@adminjs'
const params = {
name: 'John',
'education.school.name': 'Harvard',
'education.school.id': 123,
}
flat.filterOutParams(params, 'education.school')
// results to {
// name: 'John',
// }
flat.filterOurParams(params, 'name')
// results to {
// 'education.school.name': 'Harvard',
// 'education.school.id': 123,
// }