JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 240524
  • Score
    100M100P100Q178243F
  • License MIT

Remove undefined properties and empty arrays from an object

Package Exports

  • remove-undefined-objects
  • remove-undefined-objects/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (remove-undefined-objects) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

remove-undefined-objects

Build

Installation

npm install --save remove-undefined-objects

Usage

import removeUndefinedObjects from 'remove-undefined-objects';
// const { default: removeUndefinedObjects } = require('remove-undefined-objects');

console.log(removeUndefinedObjects({key: [], key2: 123}));
// { key2: 123 }