@pefish/js-node-assist
v2.1.1
Published
assistance tool of node
Downloads
422
Readme
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
// ...