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
- Host: GitHub
- URL: https://github.com/2ue/jia-tools
- Owner: 2ue
- License: mit
- Created: 2024-05-16T14:40:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-12-30T07:50:03.000Z (over 1 year ago)
- Last Synced: 2025-08-25T08:36:55.274Z (10 months ago)
- Language: TypeScript
- Size: 238 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README-cn.md
- License: LICENSE
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
## 变更日志