npm install @muyi086/cal
# common JS
const { cal } = require('@muyi086/cal')
# es6
import { cal } from '@muyi086/cal'
const str = '-(-5+(-2*33//3****4)-2)+((5*6)/2+2)-23*4/2+43'
const value = cal.dealBracket(str)
function | parameter | default | required | description |
---|---|---|---|---|
dealBracket | string | string | required | a string include expression |