Skip to content

JavaScript utility library(一款js常用工具库,类似lodash)

License

Notifications You must be signed in to change notification settings

pefish/js-node-assist

Repository files navigation

Js-node-assist

Makes JavaScript easier to use, and improve coding efficiency

Install

npm install @pefish/js-node-assist

Example

import { RoundingMode, StringUtil } from "../src/index";

console.log(StringUtil.canCastNumber(`10.12`)); // true
console.log(StringUtil.canCastNumber(`10.a`)); // false
console.log(StringUtil.start(`10.12`).remainDecimal(4, RoundingMode.ROUND_UP).end()); // 10.12
console.log(StringUtil.start(`10`).add('5').multi(10).div(5).end()); // (10 + 5) * 10 / 5 = 30
// ...

About

JavaScript utility library(一款js常用工具库,类似lodash)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published