An open API service indexing awesome lists of open source software.

https://github.com/2ue/jia-tools

A commonly used JavaScript-related toolset, including common null checking, judgment, etc., which can be used in native JavaScript, vue, react and other frameworks, and supports on-demand references
https://github.com/2ue/jia-tools

Last synced: 4 months ago
JSON representation

A commonly used JavaScript-related toolset, including common null checking, judgment, etc., which can be used in native JavaScript, vue, react and other frameworks, and supports on-demand references

Awesome Lists containing this project

README

          

# JS工具库:jia-tools

> !important: 目前处于积极开发中,可能有破坏性更新

> `jia-tools`是一个js的工具库,提供了常用的函数工具。

## 和lodash等函数库的区别

`jia-tools`其本质是对这类工具库的一些补充,或者对其某些函数的重写。为什么要这么做呢,主要是在实际运用过程中希望以更简化的方式来处理函数逻辑

## 安装指南

通过npm包管理器,您可以轻松地将`jia-tools`集成到您的项目中。只需在项目的根目录下运行以下命令即可完成安装:

``` shell
# npm
npm install --save jia-tools
# yarn
yarn add jia-tools
# pnpm
pnpm add --save jia-tools
```

## 方法集合

- filterBlankValue
- findBy
- findIndexAll
- findPath
- formateMoney
- getType
- isBlank
- isNull
- isNumber
- isTrimNull
- isType
- string2Json

### Feature

- oneOf
- allOf
- someOf

## 变更日志