3.9.85 • Published 10 months ago

@taktikorg/dolor-tempora v3.9.85

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@taktikorg/dolor-tempora

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, @taktikorg/dolor-tempora traverses arrays as well as objects.

Status

npm version build status

Installation

Install the package via npm:

$ npm install @taktikorg/dolor-tempora --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('@taktikorg/dolor-tempora');
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

Array.prototype.flatMaptoolsvalidbufferargsstatelesshandlerspatchformattingECMAScript 2018esfast-cloneprunemulti-packagebyteLengthinstallregexglobal this valuemanagerreduxdescriptorsnegative zerorobustcssnodejsECMAScript 2015callboundtrimStartconfigurabletoolkitdeepsameValueZeroemrless compilerjoipropertiesES2018sharedarraybufferbeanstalkUnderscoreshrinkwrapwindowsetgetOwnPropertyDescriptorpyyamlRegExp.prototype.flagsquerystringtermwritableinReactiveExtensions.envpushreuse@@toStringTaghookformlanguageencryptionlocalCSSfullwidth$.extendform-validationtimetranspilermacosshellisConcatSpreadablewriteasciiStreamswaitterminalreal-timeasyncglobalThiscloudformationcloudtrailES3xhrramdautilscopyeventsfile systemUint16Arraybusyserializecss-in-jsentriesperformanceMicrosofttraverseregular-expressionPushObject.assignsesenumerable[[Prototype]]fixed-widthimportexportdomlazySystem.globalpositiveoptionES8sqsexpressioncommand-lineremovecjkautoscalingwidthmkdirscachefull-widthInt32ArraycloudsearchsignalsworkerES2020flagcallbindttylogreact-componentcore-jsprocessreact-hook-formimmutablewalkcss variablePromisejsonECMAScript 2016requestreact animationsafedeepcopysyntaxObject.fromEntriesirqspeedchaies-abstractbounddependency manageres-shimsWeakMapdataviewregularlesscollection.es6react-testing-librarynpmlistenersomitiamECMAScript 5protoUint8ClampedArraychannelstylesheetfssidenativeframerAsyncIteratorrgbsharedFloat32Arraywindowsiteratereact posefastArray.prototype.findLastebsfnmatchvarmatchAllinvariantletcontainsbindfast-deep-clonemetadataswfsigintECMAScript 3colorsprivatebytematchjson-schema-validationpropsequenceresolveeslintvarstddcolourartstylesless mixinsredirectparserdefineyupRxsomesetPrototypeOfreact-hooksvisualargvspinnersassertsflatMaptyped arraysortedprotocol-buffersjestfantasy-landecmascriptfetchReactiveXinternalexitsignalconsumenodetextsetImmediateObservablestyled-componentsidleroutingmovewhatwgdiffbyteOffsetcommanderloadbalancingcodesprettydeepclonetc39conststoragegatewayserverdragloggingfindLastIndexenderlibphonenumberapistringes5settingschinesenested cssexpressmatchesbinariesmockkeysweaksetback-endmapBigUint64ArrayassertionsymlinkprotobufcoercibleharmonyhasOwnhashmobileanimationforEachECMAScript 2017certificatesdropArrayBufferownmergefullsortfast-deep-copyspawnlinuxobjcreatesymbolendpointairbnblockfilelruviewRegExp#flagsMapqueuemixins-0importponyfilltoStringTagstyleslothelpersclienttacitwgetES5compile lessdayjstoArrayhttpscryptdom-testing-librarybundlinglastvariableseveryWebSocketredux-toolkitObject.keysArrayBuffer#slicelengthIteratorES2017StyleSheetselfdynamodbcss nestinggradients css3Object.entriesimmerjson-schemawaflesscsssnsObjectfront-endjson-schema-validatorTypeScriptArray.prototype.includespinoglobalnamesliceURLSearchParamsdependenciesJSONvestjapanesearraybufferextraansiinspectajvincludeschromenegativesetterbrowsertestexit-codecoreInt16ArrayserializerRFC-6455fastifyfastcloneconcatidentifierskoreanprivate dataspinnerhardlinksstreamsmkdirutil.gitignorebanneremitarraytransportdescriptioncolumnspringstarterexecfluxtrimLeftshimserializationSymbolReflect.getPrototypeOfArrayBuffer.prototype.slicekeymake dirUint8Arraypostcss-pluginclassesjavascriptArrayvalidationES2016package.jsonpoint-freeoperating-systempredictablemapreduceoutputspeces20156to5modulequeueMicrotaskpreprocessorlinkstreamuser-streamsjQuerytypesafeoptimizermockingeslintconfigconsoleextendtrimHyBivaluesgesturespolyfillcallrdsdeterministicgroupByio-tsdeep-clonea11ywarninginstallerminimalkinesisbinarystructuredCloneqsbinfromString.prototype.matchAllJSON-SchemaES7stylingforkflatutilityschemeiteratorposedatepasswordfindproxyscheme-validationasteriskscolorreadableredactoffsetloggerESnextbootstrap lessmkdirpescapeprefixworkflowzodinferencetrimRighteventDispatcherurlamazonhas-ownvariables in cssES2023pluginastcollectionless cssfunctionalassert0ES2015es6glacierstringifyunicodetostringtagArray.prototype.findLastIndexjsdiffarktypetoobjectgradients csserrorcloneFloat64ArraygrouptelephoneArray.prototype.flat
3.9.85

10 months ago

3.9.84

10 months ago

3.9.83

10 months ago

3.8.83

10 months ago

3.8.82

10 months ago

3.8.81

10 months ago

3.8.80

10 months ago

3.8.79

11 months ago

3.8.78

11 months ago

3.8.77

11 months ago

3.7.77

11 months ago

3.7.76

11 months ago

3.7.75

11 months ago

3.7.74

11 months ago

3.7.73

11 months ago

3.7.72

11 months ago

3.7.71

11 months ago

3.7.70

11 months ago

3.7.69

11 months ago

3.7.68

11 months ago

3.7.67

11 months ago

3.6.67

11 months ago

3.6.66

11 months ago

3.6.65

11 months ago

3.6.64

11 months ago

3.6.63

11 months ago

3.6.62

11 months ago

3.6.61

11 months ago

3.6.60

11 months ago

3.6.59

11 months ago

3.6.58

11 months ago

3.6.57

11 months ago

3.6.56

11 months ago

3.6.55

11 months ago

3.5.55

11 months ago

3.5.54

11 months ago

3.5.53

11 months ago

3.5.52

12 months ago

3.5.51

12 months ago

3.5.50

12 months ago

3.5.49

12 months ago

3.4.49

12 months ago

3.4.48

12 months ago

3.4.47

12 months ago

3.4.46

12 months ago

3.4.45

12 months ago

3.4.44

12 months ago

3.4.43

12 months ago

3.4.42

12 months ago

3.4.41

12 months ago

3.4.40

12 months ago

3.4.39

12 months ago

3.4.38

12 months ago

3.4.37

12 months ago

3.4.36

12 months ago

3.4.35

12 months ago

3.4.34

12 months ago

3.4.33

1 year ago

3.4.32

1 year ago

3.4.31

1 year ago

3.4.30

1 year ago

3.4.29

1 year ago

3.3.29

1 year ago

3.3.28

1 year ago

2.3.28

1 year ago

2.3.27

1 year ago

2.3.26

1 year ago

2.3.25

1 year ago

2.3.24

1 year ago

2.3.23

1 year ago

2.3.22

1 year ago

2.3.21

1 year ago

2.3.20

1 year ago

2.3.19

1 year ago

2.3.18

1 year ago

2.3.17

1 year ago

2.3.16

1 year ago

2.3.15

1 year ago

2.2.15

1 year ago

2.1.15

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago