1.4.33 • Published 1 year ago

@hishprorg/magni-amet-id v1.4.33

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@hishprorg/magni-amet-id

Removes empty objects, arrays, empty strings, NaN, null and undefined values from objects. Does not alter the original object.

As of version 3.0.0, @hishprorg/magni-amet-id traverses arrays as well as objects.

Status

npm version build status

Installation

Install the package via npm:

$ npm install @hishprorg/magni-amet-id --save

Usage

Arguments

  1. object (Object): The source object.
  2. [options] (Object): An optional object with the following options:
OptionDefault valueDescription
cleanKeys[]Remove specific keys, ie: ['foo', 'bar', ' ']
cleanValues[]Remove specific values, ie: ['foo', 'bar', ' ']
emptyArraystrueRemove empty arrays, ie: []
emptyObjectstrueRemove empty objects, ie: {}
emptyStringstrueRemove empty strings, ie: ''
NaNValuesfalseRemove NaN values, ie: NaN
nullValuestrueRemove null values, ie: null
undefinedValuestrueRemove undefined values, ie: undefined

(Object): Returns the cleansed object.

Example

const cleanDeep = require('@hishprorg/magni-amet-id');
const object = {
  bar: {},
  baz: null,
  biz: 'baz',
  foo: '',
  net: [],
  nit: undefined,
  qux: {
    baz: 'boz',
    txi: ''
  }
};

cleanDeep(object);
// => { biz: 'baz', qux: { baz: 'boz' } }

Tests

$ npm test

Release

npm version [<newversion> | major | minor | patch] -m "Release %s"

License

MIT

passworddebuggerURLSearchParamscachecolumnsrdssnsresolvehelpersES2017mrutrimRightescapenegative zerocopyHyBiwatchFilereducerBigInt64ArraymonorepodatafpsArrayoptionhotwebhas-ownnodejs@@toStringTaglesscssregularhookformsqscomputed-typesvariableswidthtypeerrorECMAScript 7shimfunctionmixinswatchES2019getoptArrayBuffer#sliceprotocol-buffersES2020fast-deep-copycharactersroutingequaltostringtagtrimEndfastclonebundlingiteratorwalkprettyArray.prototype.includesRxprogresseventDispatchersymbolpatchObject.keyseslintpluginES5file systemcloudtrailgetOwnPropertyDescriptorstringifierbeanstalkeslintgetintrinsicgradients css3classesgetfast-deep-clonepackage.jsonstartermakeECMAScript 2023viewlistenersispredictableES2015Array.prototype.flatMapbddjsonpathspinnersenumerablesimpledbes2018TypedArrayes-shimses-abstractpostcssUint8Arrayform-validationMicrosoftjsonbatchtoolsendernameawesomesauceautoprefixerroute53jQueryjsdomdescriptorsbindvpcprunefilterawsiteratetypedObject.assignspeed__proto__persistentdirectoryrgbsameValueZeroES2022ttybufferflatMaprfc4122sortvaluerateaccessorpipegenericsES8requirexhrprivateelectronebsphoneUint16Arrayqueueutilitiesdatemomentreduxmime-dbObject.entriesformattinglintclientecmascriptqueueMicrotaskjsfixed-widthfindslotdeepclonewatcherbyteLengthfastmoduleintrinsicslicecircularajvspinnerbuffersbannerschemeutilbreakclass-validatorboundIteratortoSortedObservableslibphonenumberhardlinksmatchessettingsrm -frreadfssharedarraybufferajaxESnextreact-hook-formcompareserializationemitinferenceelmstreamairbnbchinesees7sortedshebangArray.prototype.flattenweakmapurlwhichnativechaiimmutableStreamdeleteoffsetObject.fromEntriesremoveFunction.prototype.namepreprocessortrimStartastless compilerpackagesconsolepackagelazyfolderfromquerystringdataviewBigUint64Arraycssfluxfast-cloneglobl10nnodelogReactiveXlivepropertycallboundspecWeakMapstablewalkingzeroworkeromitdescriptionroutefigletWeakSetdeterministicjapaneseAsyncIteratorauthenticationreal-timestylingi18ntypesafeArray.prototype.findLastES6bluebirdformsyntaxyuptaskcollectionstateutil.inspectshellargvsearchkinesisschemareplayrmdeepinputtddgroupByES2016positivekeyswatchingreact-testing-libraryloggingdiffstringtouchlessformatObject.definePropertyregular expressionshamPushchromeerroriterationlinewrapvaluescurlxtermmapreduces3glacierencryptionflagsswfpolyfillimmerieparentlook-upvisualregexmobileshareddeep-copyec2Int32ArrayhasplugintapRFC-6455corsfastifysymlinkstypeofparseloadbalancingemojifunctionaldomvalidationuuidargsinternal slotfindupsymlinkcss-in-jsextensionfull-widthlocationStyleSheetcallbinddefinePropertyECMAScript 2019invariantansibundlerdeep-cloneoptimizerestreetypedarraylimitedisConcatSpreadablehashreadablecode pointscommand-linepreserve-symlinksconsumetextformslruapollocjkbootstrap lessprototype[[Prototype]]owntypescriptmodulesdatastructurepostcss-plugininhooksconcurrencycloudsearchrobusttapees2015collection.es6zodstyleguideinstallstreams2package managerprefixtraversebrowserWebSocketsasyncECMAScript 6variables in csssuperstructstreamsmkdirplanguageUnderscoreRegExp.prototype.flagsECMAScript 3koreanES2018assigncreateguidcall-boundcommandjestefficientvalidunicode-0byteio-tsstructuredClonescheme-validationfetchArray.prototype.filterperformancesuperagenteslint-pluginjoiArray.prototype.containstypanionArray.prototype.flatgraphqlredirectCSSStyleDeclarationSymbolwriteWebSocketdescriptores-shim APIassertscallbacksesimportloggertyped arrayECMAScript 2018toArraysyntaxerrorcharactersequenceasciinamesuninstallfind-uputilityeventsstoragegatewaycolorthrottleextraflattensetregular expressionshasOwnPropertymimegdprarraybufferreduceenvarktypePromisereusetc39classnamecryptidlechromiummake dirObject.valuesesmkdirstrimLefttoobjectjasmineES2021negativeassertionES3terminaloutputes2016proxyidassertYAMLTypeBoxgetterloadingrangeerrorcheckwrapfseventsfindLastIndexinternalmoveelasticacheURLString.prototype.trimawaitsafeupbrowserlisttermobjectES2023serializeless.jssidejsxJSONnopeequalityapitoStringTaghttpsentriesratelimitSymbol.toStringTag$.extendpnpm9rm -rfECMAScript 2022multi-packagemergeconfigclilimitString.prototype.matchAllforEachmetadataregexpdroppromisefullworkflowhttpeast-asian-widthconcatMapcloudfrontwaitjavascriptsomeimportexportdataViewshrinkwrapcoreTypeScriptwritableindicatorstylescryptocompilercloneJSON-Schemainstalleramazoncoercibledom-testing-librarypropbyteOffsettesttypeES7getPrototypeOfinspectcompile less0browserslistdependency managertestingObservable
@hishprorg/ipsa-consectetur-minima@hishprorg/nemo-blanditiis@hishprorg/neque-laborum-vel@hishprorg/quis-quibusdam@hishprorg/quibusdam-dolores@hishprorg/quis-doloribus@hishprorg/quidem-delectus@hishprorg/quidem-et@hishprorg/quis-est@hishprorg/sed-nihil-iusto@hishprorg/sequi-inventore-labore@hishprorg/sed-sunt@hishprorg/temporibus-aliquam-neque@hishprorg/tempore-dolor-ut@hishprorg/accusantium-architecto@hishprorg/ad-labore-dolor@hishprorg/ad-minima@hishprorg/ad-soluta-et@hishprorg/accusantium-consectetur-incidunt@hishprorg/beatae-cumque@hishprorg/beatae-animi-commodi@hishprorg/autem-quo@hishprorg/debitis-quaerat@hishprorg/debitis-qui@hishprorg/cupiditate-ut@hishprorg/dolores-ut@hishprorg/et-esse-quasi@hishprorg/est-odio-laudantium@hishprorg/eum-eos@hishprorg/et-dicta-cum@hishprorg/eum-nihil-maiores@hishprorg/illo-voluptas@hishprorg/impedit-consectetur-dicta@hishprorg/architecto-sequi@hishprorg/architecto-sapiente@hishprorg/asperiores-hic@hishprorg/aspernatur-consequatur@hishprorg/asperiores-voluptates@hishprorg/asperiores-provident@hishprorg/consectetur-sunt@hishprorg/consectetur-ab@hishprorg/consectetur-dolores@hishprorg/deserunt-est@hishprorg/deserunt-velit-quod@hishprorg/deserunt-nihil@hishprorg/deserunt-deleniti@hishprorg/doloremque-soluta@hishprorg/doloremque-mollitia@hishprorg/dolore-suscipit@hishprorg/hic-omnis@hishprorg/hic-perferendis@hishprorg/fuga-repellat@hishprorg/fugiat-accusamus-laboriosam@hishprorg/fugiat-eius@hishprorg/fugiat-libero-itaque@hishprorg/aliquam-quibusdam-repudiandae@hishprorg/aliquid-delectus-nisi@hishprorg/aliquid-ut-debitis@hishprorg/alias-maiores-saepe@hishprorg/amet-qui@hishprorg/beatae-officia@hishprorg/earum-occaecati@hishprorg/earum-sint-veritatis@hishprorg/earum-inventore@hishprorg/earum-consectetur@hishprorg/est-dicta-quis@hishprorg/esse-voluptates-veritatis@hishprorg/id-ab@hishprorg/id-harum@hishprorg/id-modi@hishprorg/id-dignissimos@hishprorg/id-voluptas@hishprorg/id-consequuntur@hishprorg/hic-repellendus-hic@hishprorg/illo-dolores@hishprorg/cumque-optio@hishprorg/cupiditate-quaerat-qui@hishprorg/doloribus-vero@hishprorg/dolorum-commodi-architecto@hishprorg/doloribus-reiciendis@hishprorg/doloribus-minima@hishprorg/dolorum-est@hishprorg/exercitationem-ipsum@hishprorg/distinctio-repudiandae-molestias@hishprorg/distinctio-alias@hishprorg/dignissimos-sunt-quaerat@hishprorg/distinctio-in@hishprorg/eos-enim-voluptate@hishprorg/eos-asperiores@hishprorg/eligendi-laborum@hishprorg/enim-fugiat-quas@hishprorg/eligendi-neque@hishprorg/eveniet-maxime@hishprorg/ex-tempora-libero@hishprorg/architecto-consectetur@hishprorg/culpa-ea-facilis@hishprorg/culpa-ratione-dolores@hishprorg/corrupti-voluptas@hishprorg/corrupti-vero@hishprorg/culpa-iusto-corrupti
1.3.30

1 year ago

1.3.13

1 year ago

1.3.14

1 year ago

1.3.17

1 year ago

1.3.18

1 year ago

1.3.15

1 year ago

1.3.16

1 year ago

1.3.19

1 year ago

1.4.31

1 year ago

1.3.20

1 year ago

1.4.30

1 year ago

1.3.21

1 year ago

1.4.33

1 year ago

1.4.32

1 year ago

1.3.24

1 year ago

1.3.25

1 year ago

1.3.22

1 year ago

1.3.23

1 year ago

1.3.28

1 year ago

1.3.29

1 year ago

1.3.26

1 year ago

1.3.27

1 year ago

1.3.12

1 year ago

1.3.10

1 year ago

1.3.9

1 year ago

1.3.8

1 year ago

1.3.11

1 year ago

1.3.7

1 year ago

1.3.6

1 year ago

1.3.5

1 year ago

1.2.5

1 year ago

1.2.4

1 year ago

1.2.3

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago