0.1.0 • Published 2 years ago

@h-utils/filter-empty-content v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

@h-utils/filter-empty-content

@h-utils/filter-empty-content - v0.0.2

Table of contents

Functions

Functions

default

default(target, isDeep?, filterConfig?): unknown

filter the content of array or object, bump the field which value is ''、undefined、null、{}、[]

Parameters

NameTypeDefault valueDescription
targetunknownundefinedThe value you want to filter,except object or array.
isDeepbooleanfalseIf field is an array of object,filter it or not.
filterConfigIFilterConfig | checkIsNeedTypeDEFAULT_FILTER_CONFIGThe method or config to filter value.

Returns

unknown

filter result