@signalwire/compatibility-api
Version:
SignalWire Compatibility API
23 lines (19 loc) • 363 B
JavaScript
;
var _ = require('lodash');
/**
* @namespace values
*/
/**
* @function of
* @memberOf values
* @description removes all undefined values of an object
*
* @param {object} obj object to filter
* @return {object} object with no undefined values
*/
function of(obj) {
return _.omitBy(obj, _.isUndefined);
}
module.exports = {
of: of,
};