mirror of
https://github.com/strapi/strapi.git
synced 2025-07-25 01:49:34 +00:00
10 lines
176 B
JavaScript
10 lines
176 B
JavaScript
'use strict';
|
|
|
|
const _ = require('lodash');
|
|
|
|
const removeUndefined = (obj) => _.pickBy(obj, (value) => typeof value !== 'undefined');
|
|
|
|
module.exports = {
|
|
removeUndefined,
|
|
};
|