rhalff / dot-object

Transform json objects using dot notation
MIT License
471 stars 46 forks source link

Math Operator on DotObject #50

Open AwanBambang opened 4 years ago

AwanBambang commented 4 years ago

Can i calculate data?

var obj = {
        data: {
            base: "2000",
            add: "2000",
            substract: "2000",
            multiply: "2",
            division: "2"
        }
    };
    var aaaa = 'base+add-substract*multiply/division'
    // which mean my expected is 2000+2000-2000*2/2=2000