Skip to content

Home > @opennd/lib

lib package

Classes

Class

Description

PrismaCreateBuilder

PrismaQueryBuilder

Functions

Function

Description

excelCursorStream({ req, res, headers, sheetName, dataHeaderIndex, zlibLevel, merges, cursor, filename, width, })

express mongodb 流式导出 excel

func()

空函数

getFirstNotUndefinedValue(arr)

获取数组中第一个值不为undefine的项

getPropByPath(obj, path, strict)

使用字符串点操作获取对象中属性

getValueByPath(object, prop)

使用字符串点操作获取对象中的值

isArray(val)

判断值是否为数组

isEmptyInput(val)

判断值是否是null|undefined|''

isEmptyObj(obj)

判断是否是空对象

isNull(val)

判断值是否为null

isPlainObj(val)

判断值是否为对象

isStr(val)

判断值是否是string

isUndef(val)

判断值是否是undefined

noInputEmptyInArr(arr)

判断数组中不包含undefined '' null

realType(may)

获取数据类型

realTypeEqual(may, type)

判断类型是否为 type

runFns(fns, args)

执行多个同步函数

setIfNotUndef(data, key, value)

当值不为undefined时,将值赋值给data[key]

setValueByPath(obj, path, value)

使用字符串点操作获设置对象中属性, 中间不存在的属性值将被设为 {}

sid()

生成短的uuid

undefinedAndNotNullValueAsTrue(val)

判断传入的数组的每一项或单个值是否为undefined|!['', null].includes(val)

undefinedAndTrueAsTrue(val)

判断传入的数组的每一项或单个值是否为undefined|true

withProxyLogger(proxy)

代理日志

Interfaces

Interface

Description

ExcelStreamArs

Header

Type Aliases

Type Alias

Description

CreateOperate

Filter

Operate