1.0.0 • Published 2 years ago

ju-transform-array v1.0.0

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

前端技术

  • JavaScript,es6

  • 安装依赖

npm i ju-transform-object
yarn add ju-transform-object
  • 开发模式运行
import {transformObject} from 'transformObject'
new transformObject().init()

其他说明

  • 参数说明
  • 1.数组/对象
  • 2.满足条件之后进行的操作 删除(delete)/转换为0(toZero) (可省)(默认值为delete)
  • 3.需要检查的属性名(不传则直接检查元素是否为空) (可省)(默认值为[],检查所有)
  • 4.判断删除/转换为0的条件(可省)(默认值为[],条件为undefined、null)
  transformObject(array, 'delete', [props1, props2, ...], [condition1, condition2, ...])
  transformObject(array)
1.0.0

2 years ago